From 902047096a4f8c8a66563b8c3aa7d631948f5e5e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 21 Jun 2011 20:17:36 +0000 Subject: [PATCH] exit with "_errorLevel" --- Common/GmshMessage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp index 8a6ef0cbf9..17cc855d71 100644 --- a/Common/GmshMessage.cpp +++ b/Common/GmshMessage.cpp @@ -134,7 +134,8 @@ void Msg::Exit(int level) #if defined(HAVE_MPI) MPI_Finalize(); #endif - exit(0); + + exit(_errorCount); } void Msg::Fatal(const char *fmt, ...) -- GitLab