Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-05-02 09:53:35 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-05-02 09:53:35 +0400
commit487d950c90f761b64314d36723bdc9d12439e5df (patch)
tree42c778f5578d3e3ab1964b738b25e7b8d7add9d1 /msvc
parent42d6af035c70c1ea0601f4007df3d8e47950cf42 (diff)
Better debug
svn path=/trunk/mono/; revision=133371
Diffstat (limited to 'msvc')
-rwxr-xr-xmsvc/scripts/monowrap.cs12
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;
+
+ }
}
}
}