dotnet test and publish failing badly when the project isn't restored.

Fixing this by checking for diagnostic errors before continuing.

Fix #2692
Fix #2942
This commit is contained in:
Eric Erhardt 2016-04-29 15:46:16 -05:00
parent 0336f6bb34
commit 652d0541ef
18 changed files with 168 additions and 42 deletions

View file

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