From: Adam Dickmeiss Date: Mon, 22 Mar 2010 14:28:09 +0000 (+0100) Subject: ZOOM: More informative surrogate diagnostic X-Git-Tag: v4.0.3~24 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=f4aef846d5972b8a2fafda28ceb99eeedaf21208 ZOOM: More informative surrogate diagnostic --- 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); }