summaryrefslogtreecommitdiff
path: root/query.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-04-05 17:35:45 +0000
committerroot <devnull@localhost>1996-04-05 17:35:45 +0000
commit51c14bb24858aab6447b3a8631b445c388a2a6bc (patch)
tree8f079d28a208f458bbc5586486ccb9ccdc9e5a31 /query.c
parent9b4667fe91e6ae08dbf44b59a411d61f507d7202 (diff)
downloadrpm-51c14bb24858aab6447b3a8631b445c388a2a6bc.tar.gz
rpm-51c14bb24858aab6447b3a8631b445c388a2a6bc.tar.bz2
rpm-51c14bb24858aab6447b3a8631b445c388a2a6bc.zip
added more intelligent error messages for bad magic
CVS patchset: 528 CVS date: 1996/04/05 17:35:45
Diffstat (limited to 'query.c')
-rw-r--r--query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/query.c b/query.c
index 6cea0165f..c6759cc79 100644
--- a/query.c
+++ b/query.c
@@ -439,7 +439,11 @@ int doQuery(char * prefix, enum querysources source, int queryFlags,
}
break;
case 1:
- fprintf(stderr, "%s is not an RPM\n", arg);
+ fprintf(stderr, "%s does not appear to be a RPM package\n",
+ arg);
+ /* fallthrough */
+ case 2:
+ fprintf(stderr, "query of %s failed\n", arg);
retcode = 1;
}