diff --git a/bin/xbps-pkgdb/check.c b/bin/xbps-pkgdb/check.c index f536bcb1..80f20a05 100644 --- a/bin/xbps-pkgdb/check.c +++ b/bin/xbps-pkgdb/check.c @@ -116,7 +116,7 @@ do { \ if (rv == -1) { \ xbps_error_printf("%s: the %s test " \ "returned error!\n", pkgname, #name); \ - return rv; \ + return EINVAL; \ } \ } \ } while (0)