diff options
author | Miguel de Icaza <miguel@gnome.org> | 2009-05-02 09:53:35 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2009-05-02 09:53:35 +0400 |
commit | 487d950c90f761b64314d36723bdc9d12439e5df (patch) | |
tree | 42c778f5578d3e3ab1964b738b25e7b8d7add9d1 /msvc/scripts/monowrap.cs | |
parent | 42d6af035c70c1ea0601f4007df3d8e47950cf42 (diff) |
Better debug
svn path=/trunk/mono/; revision=133371
Diffstat (limited to 'msvc/scripts/monowrap.cs')
-rwxr-xr-x | msvc/scripts/monowrap.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/msvc/scripts/monowrap.cs b/msvc/scripts/monowrap.cs index 63326f2e8bf..ef662e80bc8 100755 --- a/msvc/scripts/monowrap.cs +++ b/msvc/scripts/monowrap.cs @@ -124,10 +124,16 @@ namespace csc UseShellExecute = false }; - var proc = Process.Start (pi); + try { + var proc = Process.Start (pi); - proc.WaitForExit(); - return proc.ExitCode; + proc.WaitForExit (); + return proc.ExitCode; + } catch (System.ComponentModel.Win32Exception){ + Console.Error.WriteLine ("Chances are, it did not find {0}", mono_cmd); + throw; + + } } } } |