projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab74a09
)
If not error callback is registered, the error gets printed to stderr
author
ewt
<devnull@localhost>
Mon, 8 Jan 1996 19:15:22 +0000
(19:15 +0000)
committer
ewt
<devnull@localhost>
Mon, 8 Jan 1996 19:15:22 +0000
(19:15 +0000)
CVS patchset: 163
CVS date: 1996/01/08 19:15:22
lib/rpmerr.c
patch
|
blob
|
history
rpmio/rpmerr.c
patch
|
blob
|
history
diff --git
a/lib/rpmerr.c
b/lib/rpmerr.c
index
e20bdc6
..
38000aa
100644
(file)
--- 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
(file)
--- 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);
}
}