Skip to content

Commit 90f6567

Browse files
authored
fix: show proper error message when failed in loading module (#1196)
1 parent 1a14087 commit 90f6567

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/cocoindex/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ def _load_user_app(app_target: str) -> None:
8484
try:
8585
load_user_app(app_target)
8686
except UserAppLoaderError as e:
87-
raise click.ClickException(
88-
f"Failed to load APP_TARGET '{app_target}': {e}"
89-
) from e
87+
raise ValueError(f"Failed to load APP_TARGET '{app_target}'") from e
9088

9189
add_user_app(app_target)
9290

0 commit comments

Comments
 (0)