Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit c2bacaf

Browse files
authored
Merge branch 'release-0.6' into backport-474-to-release-0.6
2 parents 3005b28 + bffd12f commit c2bacaf

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

  • packages/jumpstarter-cli/jumpstarter_cli

packages/jumpstarter-cli/jumpstarter_cli/run.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
import sys
2-
31
import asyncclick as click
42
from jumpstarter_cli_common.config import opt_config
5-
from jumpstarter_cli_common.exceptions import handle_exceptions
3+
from jumpstarter_cli_common.exceptions import handle_exceptions, leaf_exceptions
64

75

86
async def _serve_with_exc_handling(exporter):
97
result = 0
108
try:
119
await exporter.serve()
1210
except* Exception as excgroup:
13-
for exc in excgroup.exceptions:
14-
print(f"Exception while serving on the exporter: {exc}", file=sys.stderr)
11+
for exc in leaf_exceptions(excgroup):
12+
click.echo(
13+
f"Exception while serving on the exporter: {type(exc).__name__}: {exc}",
14+
err=True,
15+
)
1516
result = 1
1617
return result
1718

0 commit comments

Comments
 (0)