Skip to content

Commit 21f8c9a

Browse files
committed
Better error handling #201
Signed-off-by: Chin Yeung Li <tli@nexb.com>
1 parent fb3e792 commit 21f8c9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/fetchcode/nix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ def get_nix_download_url(path):
559559
url_path = get_narinfo_url(narinfo_url)
560560

561561
if not url_path:
562+
print(f"{narinfo_url} is not accessible.")
562563
return None
563564

564565
return f"https://cache.nixos.org/{url_path}"

0 commit comments

Comments
 (0)