From f4aef846d5972b8a2fafda28ceb99eeedaf21208 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 22 Mar 2010 15:28:09 +0100 Subject: [PATCH] ZOOM: More informative surrogate diagnostic --- src/zoom-c.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 44a5646..684d1b6 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2386,7 +2386,10 @@ static void handle_records(ZOOM_connection c, Z_Records *sr, { /* present response and we didn't get any records! */ Z_NamePlusRecord *myrec = - zget_surrogateDiagRec(resultset->odr, 0, 14, 0); + zget_surrogateDiagRec( + resultset->odr, 0, + YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS, + "ZOOM C generated. Present phase and no records"); record_cache_add(resultset, myrec, *start, syntax, elementSetName, 0, 0); } @@ -2395,7 +2398,10 @@ static void handle_records(ZOOM_connection c, Z_Records *sr, { /* present response and we didn't get any records! */ Z_NamePlusRecord *myrec = - zget_surrogateDiagRec(resultset->odr, 0, 14, 0); + zget_surrogateDiagRec( + resultset->odr, 0, + YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS, + "ZOOM C generated: Present response and no records"); record_cache_add(resultset, myrec, *start, syntax, elementSetName, 0, 0); } -- 1.7.10.4