Skip to content

Commit 96c6419

Browse files
committed
fix: Improve clarity of download error messages
The messages are cute, but some people might not understand what "your file is in another castle" means, or what the awkward phrase "log into browser to download one" means. ;)
1 parent d1ef6a1 commit 96c6419

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

comfy_cli/file_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def parse_json(input_data):
3737
if msg_json is not None:
3838
if "message" in msg_json:
3939
return f"Unauthorized download ({status_code}).\n{msg_json['message']}\nor you can set civitai api token using `comfy model download --set-civitai-api-token <token>`"
40-
return f"Unauthorized download ({status_code}), you might need to manually log into browser to download one"
40+
return f"Unauthorized download ({status_code}), you might need to manually log into a browser to download this"
4141
elif status_code == 403:
42-
return f"Forbidden url ({status_code}), you might need to manually log into browser to download one"
42+
return f"Forbidden url ({status_code}), you might need to manually log into a browser to download this"
4343
elif status_code == 404:
44-
return "Sorry, your file is in another castle (404)"
44+
return "Sorry, your file is in another castle (404 not found)"
4545
return f"Unknown error occurred (status code: {status_code})"
4646

4747

0 commit comments

Comments
 (0)