projects
/
idzebra-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:
10d6601
)
Better error reporting for result sets.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 16 Nov 1998 10:18:10 +0000
(10:18 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 16 Nov 1998 10:18:10 +0000
(10:18 +0000)
index/zebraapi.c
patch
|
blob
|
history
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
6bd19b9
..
848e24e
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zebraapi.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zebraapi.c,v $
- * Revision 1.11 1998-10-16 08:14:34 adam
+ * Revision 1.12 1998-11-16 10:18:10 adam
+ * Better error reporting for result sets.
+ *
+ * Revision 1.11 1998/10/16 08:14:34 adam
* Updated record control system.
*
* Revision 1.10 1998/09/22 10:03:42 adam
* Updated record control system.
*
* Revision 1.10 1998/09/22 10:03:42 adam
@@
-267,7
+270,8
@@
void zebra_records_retrieve (ZebraHandle zh, ODR stream,
if (!poset)
{
logf (LOG_DEBUG, "zebraPosSetCreate error");
if (!poset)
{
logf (LOG_DEBUG, "zebraPosSetCreate error");
- zh->errCode = 13;
+ zh->errCode = 30;
+ zh->errString = nmem_strdup (stream->mem, setname);
}
else
{
}
else
{
@@
-275,8
+279,12
@@
void zebra_records_retrieve (ZebraHandle zh, ODR stream,
{
if (!poset[i].sysno)
{
{
if (!poset[i].sysno)
{
+ char num_str[20];
+
+ sprintf (num_str, "%d", pos_array[i]);
zh->errCode = 13;
zh->errCode = 13;
- logf (LOG_DEBUG, "Out of range. pos=%d", pos_array[i]);
+ zh->errString = nmem_strdup (stream->mem, num_str);
+ break;
}
else
{
}
else
{