pkg-rm/pkg-add: better error diagnostics