throw exceptions for command not found

This commit is contained in:
Jon Sequeira 2017-03-13 20:06:59 -07:00
parent ace4fe49f6
commit 2c96d8e8b9
4 changed files with 11 additions and 13 deletions

View file

@ -80,7 +80,7 @@ namespace Microsoft.DotNet.Cli
catch (HelpException e)
{
Reporter.Output.Write(e.Message);
return e.IsError ? 1 : 0;
return 0;
}
catch (Exception e) when (e.ShouldBeDisplayedAsError())
{