pkg-deps: better error reporting