[xbuild] Handle unknown exceptions.
[mono.git] / mcs / ilasm / Driver.cs
index eb5ee04410a28defe6249da57ae4c7317dc83b28..6f38e9d67be4078eeb2eb85ef17dd4c69cd8ccdb 100644 (file)
@@ -33,7 +33,7 @@ namespace Mono.ILASM {
                         DriverMain driver = new DriverMain (args);
                         if (!driver.Run ())
                                 return 1;
-                        Console.WriteLine ("Operation completed successfully");
+                        Report.Message ("Operation completed successfully");
                         return 0;
                 }
 
@@ -104,7 +104,7 @@ namespace Mono.ILASM {
 
                                 try {
                                        if (sn != null) {
-                                               Console.WriteLine ("Signing assembly with the specified strongname keypair");
+                                               Report.Message ("Signing assembly with the specified strongname keypair");
                                                return Sign (output_file);
                                        }
                                 } catch {
@@ -249,8 +249,6 @@ namespace Mono.ILASM {
                                                 break;
                                         case "debug":
                                         case "deb":
-                                               if (str[0] != '-')
-                                                       break;
                                                debugging_info = true;
                                                break;
                                         // Stubs to stay commandline compatible with MS