remove calls to DisplayAsError

This commit is contained in:
jonsequitur 2017-02-07 16:13:22 -08:00
parent bb9cdf5725
commit f1bf1d83aa

View file

@ -124,14 +124,12 @@ namespace Microsoft.DotNet.Tools.Run
var project = "--project"; var project = "--project";
throw new InvalidOperationException( throw new InvalidOperationException(
$"Couldn't find a project to run. Ensure a project exists in {directory}, or pass the path to the project using {project}") $"Couldn't find a project to run. Ensure a project exists in {directory}, or pass the path to the project using {project}");
.DisplayAsError();
} }
else if (projectFiles.Length > 1) else if (projectFiles.Length > 1)
{ {
throw new InvalidOperationException( throw new InvalidOperationException(
$"Specify which project file to use because {directory} contains more than one project file.") $"Specify which project file to use because {directory} contains more than one project file.");
.DisplayAsError();
} }
Project = projectFiles[0]; Project = projectFiles[0];