From 3063a11e1e633149118ae99eb11d54a9624d4733 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 8 May 2004 14:14:05 +0000 Subject: [PATCH] Removed MessageBox in dispatch_message if exit_on_error false. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1351 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/message.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 24d1f90fd5..4aee244756 100755 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -571,7 +571,10 @@ void dispatch_message(JCR *jcr, int type, int level, char *msg) #endif #if !defined(HAVE_CONSOLE) #if defined(HAVE_CYGWIN) || defined(HAVE_WIN32) - MessageBox(NULL, msg, "Bacula", MB_OK); + /* If we don't exit on error, error messages are parsed by UA */ + if (exit_on_error) { + MessageBox(NULL, msg, "Bacula", MB_OK); + } #endif #endif } -- 2.39.2