remove calls to DisplayAsError
This commit is contained in:
parent
bb9cdf5725
commit
f1bf1d83aa
1 changed files with 2 additions and 4 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue