throw exceptions for command not found
This commit is contained in:
parent
ace4fe49f6
commit
2c96d8e8b9
4 changed files with 11 additions and 13 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue