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";
|
||||
|
||||
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}")
|
||||
.DisplayAsError();
|
||||
$"Couldn't find a project to run. Ensure a project exists in {directory}, or pass the path to the project using {project}");
|
||||
}
|
||||
else if (projectFiles.Length > 1)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
$"Specify which project file to use because {directory} contains more than one project file.")
|
||||
.DisplayAsError();
|
||||
$"Specify which project file to use because {directory} contains more than one project file.");
|
||||
}
|
||||
|
||||
Project = projectFiles[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue