GFS: make surrogate diagnostic when yaz_record_conv_record fails
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Oct 2013 10:26:12 +0000 (12:26 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Oct 2013 10:26:12 +0000 (12:26 +0200)
instead of non-surrogate diagnostic. This is a per-record failure.

src/seshigh.c

index d594f43..c88c7e3 100644 (file)
@@ -688,6 +688,7 @@ static int retrieve_fetch(association *assoc, bend_fetch_rr *rr)
         if (r)
         {
             rr->errcode = YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS;
+            rr->surrogate_flag = 1;
             if (details)
                 rr->errstring = odr_strdup(rr->stream, details);
         }