Skip to content

Commit 671bb9b

Browse files
committed
chore(download): improve error message for resolve failures
Since resolvers do not necessarily look "upstream", the error message is now more general and simply states that the package could not be resolved. Signed-off-by: Christoph Steiger <[email protected]>
1 parent 4e62572 commit 671bb9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/debsbom/commands/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def run(cls, args):
118118
DownloadCmd._check_for_dsc(pkg, files)
119119
downloader.register(files, pkg)
120120
except ResolveError:
121-
logger.warning(f"not found upstream: {pkg}")
121+
pkg_type = "source" if pkg.is_source() else "binary"
122+
logger.warning(f"failed to resolve {pkg_type} package: {pkg}")
122123
if args.json:
123124
print(
124125
DownloadResult(

0 commit comments

Comments
 (0)