Skip to content

Commit 3fd117e

Browse files
Update deep_code/cli/publish.py
Co-authored-by: Thomas Storm <[email protected]>
1 parent 704ff9c commit 3fd117e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep_code/cli/publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def ensure_file(path: Optional[str], label: str):
4646
if path is None:
4747
raise click.UsageError(f"{label} is required but was not provided.")
4848
if not Path(path).is_file():
49-
raise click.UsageError(f"{label} not found: {path}")
49+
raise click.UsageError(f"{label} not found: {path} is not a file")
5050

5151
if mode == "dataset":
5252
ensure_file(dataset_config, "DATASET_CONFIG")

0 commit comments

Comments
 (0)