From 89381ecafa8c3c79470169e51ac81126beb41d58 Mon Sep 17 00:00:00 2001 From: ewt Date: Mon, 8 Jan 1996 19:15:22 +0000 Subject: [PATCH] If not error callback is registered, the error gets printed to stderr CVS patchset: 163 CVS date: 1996/01/08 19:15:22 --- lib/rpmerr.c | 3 +++ rpmio/rpmerr.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/rpmerr.c b/lib/rpmerr.c index e20bdc6..38000aa 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 e20bdc6..38000aa 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); } } -- 2.7.4