projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
484fb80
)
More printing for odr_perror
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 19 Jun 2003 21:09:25 +0000
(21:09 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 19 Jun 2003 21:09:25 +0000
(21:09 +0000)
odr/odr.c
patch
|
blob
|
history
diff --git
a/odr/odr.c
b/odr/odr.c
index
b772b60
..
da919a5
100644
(file)
--- a/
odr/odr.c
+++ b/
odr/odr.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: odr.c,v 1.44 2003-05-24 19:20:14 adam Exp $
+ * $Id: odr.c,v 1.45 2003-06-19 21:09:25 adam Exp $
*
*/
#if HAVE_CONFIG_H
*
*/
#if HAVE_CONFIG_H
@@
-47,8
+47,10
@@
char *odr_errmsg(int n)
void odr_perror(ODR o, char *message)
{
const char *e = odr_getelement(o);
void odr_perror(ODR o, char *message)
{
const char *e = odr_getelement(o);
+ int err, x;
- fprintf(stderr, "%s: %s", message, odr_errlist[o->error]);
+ err = odr_geterrorx(o, &x);
+ fprintf(stderr, "%s: %s (code %d:%d)", message, odr_errlist[err], err, x);
if (e && *e)
fprintf (stderr, " element %s", e);
fprintf(stderr, "\n");
if (e && *e)
fprintf (stderr, " element %s", e);
fprintf(stderr, "\n");