summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-01-08 19:15:22 +0000
committerewt <devnull@localhost>1996-01-08 19:15:22 +0000
commit89381ecafa8c3c79470169e51ac81126beb41d58 (patch)
tree459ee3600eb404305abac9d0820a49b0253ea9bc
parentab74a09ce50ea73e2004116eb8c1d05c8338ea5c (diff)
downloadrpm-89381ecafa8c3c79470169e51ac81126beb41d58.tar.gz
rpm-89381ecafa8c3c79470169e51ac81126beb41d58.tar.bz2
rpm-89381ecafa8c3c79470169e51ac81126beb41d58.zip
If not error callback is registered, the error gets printed to stderr
CVS patchset: 163 CVS date: 1996/01/08 19:15:22
-rw-r--r--lib/rpmerr.c3
-rw-r--r--rpmio/rpmerr.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/rpmerr.c b/lib/rpmerr.c
index e20bdc6f5..38000aad6 100644
--- a/lib/rpmerr.c
+++ b/lib/rpmerr.c
@@ -46,5 +46,8 @@ void error(int code, char *format, ...)
if (errorCallback) {
errorCallback();
+ } else {
+ fputs(errorRec.string, stderr);
+ fputs("\n", stderr);
}
}
diff --git a/rpmio/rpmerr.c b/rpmio/rpmerr.c
index e20bdc6f5..38000aad6 100644
--- a/rpmio/rpmerr.c
+++ b/rpmio/rpmerr.c
@@ -46,5 +46,8 @@ void error(int code, char *format, ...)
if (errorCallback) {
errorCallback();
+ } else {
+ fputs(errorRec.string, stderr);
+ fputs("\n", stderr);
}
}