From 1d42e432871acae563cd7114f69134ff06323fd8 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Tue, 6 Oct 2009 18:36:31 +0000 Subject: [PATCH] Don't show MessageBox when running unit tests on build server. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5057 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Debugger.Core/Project/Src/Internal/ManagedCallback.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Internal/ManagedCallback.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Internal/ManagedCallback.cs index 68f690050b..5724a59b2f 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Internal/ManagedCallback.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Internal/ManagedCallback.cs @@ -276,7 +276,10 @@ namespace Debugger "Project -> Project Options -> Compiling -> Target CPU = 32-bit Intel"; } - System.Windows.Forms.MessageBox.Show(errorText); + if (Environment.UserInteractive) + System.Windows.Forms.MessageBox.Show(errorText); + else + throw new DebuggerException(errorText); try { pauseOnNextExit = true;