void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
822 stars 124 forks source link

lib/repo.c: add user-facing error message when repodata doesn't exist #521

Closed classabbyamp closed 1 year ago

classabbyamp commented 2 years ago

Instead of just cryptically exiting 0 when opening a non-existant repodata or stagedata, with the only message existing in the debug output, show an error to the user on stderr.

mentioned in #519

classabbyamp commented 2 years ago

should this PR be expanded to add user-facing messages in other places where the exit condition is cryptic (i.e., just an exit code)?

Duncaen commented 1 year ago

Should probably use xbps_error_printf for consistency.