Merge pull request #2744 from cdmihai/cdmihai/throwWhenRedirectingBadDlls

Add exception handling when makerunable fails
This commit is contained in:
Mihai Codoban 2016-04-29 18:47:35 -07:00
commit 57a684c912
3 changed files with 48 additions and 33 deletions

View file

@ -58,7 +58,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;
}
finally