Catch exceptions and print the message from compile and publish

This commit is contained in:
David Fowler 2015-10-18 02:06:15 -07:00
parent cce7949a5a
commit 3495781233
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ namespace Microsoft.DotNet.Tools.Compiler
{ {
return app.Execute(args); return app.Execute(args);
} }
catch (OperationCanceledException ex) catch (Exception ex)
{ {
Console.Error.WriteLine(ex.Message); Console.Error.WriteLine(ex.Message);
return 1; return 1;

View file

@ -56,7 +56,7 @@ namespace Microsoft.DotNet.Tools.Publish
{ {
return app.Execute(args); return app.Execute(args);
} }
catch (OperationCanceledException ex) catch (Exception ex)
{ {
Console.Error.WriteLine(ex.Message); Console.Error.WriteLine(ex.Message);
return 1; return 1;