summaryrefslogtreecommitdiff
path: root/src/FYBA/FYLB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FYBA/FYLB.cpp')
-rw-r--r--src/FYBA/FYLB.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/FYBA/FYLB.cpp b/src/FYBA/FYLB.cpp
index 21c1472..3b9fc72 100644
--- a/src/FYBA/FYLB.cpp
+++ b/src/FYBA/FYLB.cpp
@@ -3280,7 +3280,8 @@ short LB_RGru(LC_FILADM *pFil,UT_INT64 start,UT_INT64 *slutt)
UT_SNPRINTF(err().tx,LC_ERR_LEN," \"%s %s\"",LN_GetNavn(&(pAktFil->SosiNavn),
pLb->cur_navn[pLb->cur_niv-1]),pLb->pp);
LC_Error(47,"(LB_RGru)",err().tx);
- exit (2);
+ fprintf(stderr,"Error: The library used to stop the program execution here\n");
+ return 0;
}
siste = 0;
@@ -4275,7 +4276,8 @@ void LB_FyllBuffer (FILE *fil,LB_LESEBUFFER *plb)
} else {
LC_Error(43,"(LB_FyllBuffer)",""); /* Annen lesefeil */
}
- exit(1);
+ fprintf(stderr,"Error: The library used to stop the program execution here\n");
+ return;
}
/* Konverter til rett tegnsett */
@@ -4286,7 +4288,8 @@ void LB_FyllBuffer (FILE *fil,LB_LESEBUFFER *plb)
char szMelding[LC_MAX_SOSI_LINJE_LEN + 10];
UT_SNPRINTF(szMelding, LC_MAX_SOSI_LINJE_LEN + 10, "\"%s\"", plb->tx);
LC_Error(164,"(LB_FyllBuffer)",szMelding);
- exit(1);
+ fprintf(stderr,"Error: The library used to stop the program execution here\n");
+ return;
}
/* Nullstill pekere */