summaryrefslogtreecommitdiff
path: root/src/FYBA/Fyba_Callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FYBA/Fyba_Callback.cpp')
-rw-r--r--src/FYBA/Fyba_Callback.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FYBA/Fyba_Callback.cpp b/src/FYBA/Fyba_Callback.cpp
index ca7c03d..0ece72e 100644
--- a/src/FYBA/Fyba_Callback.cpp
+++ b/src/FYBA/Fyba_Callback.cpp
@@ -102,7 +102,8 @@ void LC_ErrorHandler (short feil_nr, const char logtx[], const char vartx[])
case 4:
printf("\aTrykk [Enter] for å avbryte programmet:");
if (getchar() == 0) getchar();
- exit(2);
+ fprintf(stderr,"Error: The library used to stop the program execution here\n");
+ return;
break;
}
}