Better error messages when makerunnable fails

This commit is contained in:
Mihai Codoban 2016-04-28 17:49:04 -07:00
parent 2e963a6aef
commit b480eb9072
3 changed files with 48 additions and 33 deletions

View file

@ -50,7 +50,8 @@ namespace Microsoft.DotNet.Cli
}
catch (GracefulException e)
{
Console.WriteLine(e.Message.Red().Bold());
Console.WriteLine(CommandContext.IsVerbose() ? e.ToString().Red().Bold() : e.Message.Red().Bold());
return 1;
}
}