Skip to content

Commit d397257

Browse files
committed
Fix additional tests
1 parent 3eaf494 commit d397257

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Cli/dotnet/commands/dotnet-sln/add/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public override int Execute()
5353
}
5454
catch (Exception ex)
5555
{
56+
if (ex is SolutionException || ex.InnerException is SolutionException)
57+
{
58+
throw new GracefulException(CommonLocalizableStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
59+
}
5660
throw new GracefulException(ex.Message, ex);
5761
}
5862
}

0 commit comments

Comments
 (0)