Catch exceptions and print the message from compile and publish
This commit is contained in:
parent
cce7949a5a
commit
3495781233
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
{
|
||||
return app.Execute(args);
|
||||
}
|
||||
catch (OperationCanceledException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.Error.WriteLine(ex.Message);
|
||||
return 1;
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace Microsoft.DotNet.Tools.Publish
|
|||
{
|
||||
return app.Execute(args);
|
||||
}
|
||||
catch (OperationCanceledException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.Error.WriteLine(ex.Message);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue