Skip to content

Commit 6de3c0f

Browse files
classabbyampDuncaen
authored andcommitted
lib/repo.c: add user-facing error message when repodata doesn't exist
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
1 parent a1a0167 commit 6de3c0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/repo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ repo_open_with_type(struct xbps_handle *xhp, const char *url, const char *name)
246246
int rv = errno;
247247
xbps_dbg_printf("[repo] `%s' open %s %s\n",
248248
repofile, name, strerror(rv));
249+
xbps_error_printf("%s: %s\n", strerror(rv), repofile);
249250
goto out;
250251
}
251252
if (repo_open_local(repo, repofile)) {

0 commit comments

Comments
 (0)