Skip to content

Commit

Permalink
Fix additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edvilme committed Nov 4, 2024
1 parent 3eaf494 commit d397257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cli/dotnet/commands/dotnet-sln/add/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public override int Execute()
}
catch (Exception ex)
{
if (ex is SolutionException || ex.InnerException is SolutionException)
{
throw new GracefulException(CommonLocalizableStrings.InvalidSolutionFormatString, solutionFileFullPath, ex.Message);
}
throw new GracefulException(ex.Message, ex);
}
}
Expand Down

0 comments on commit d397257

Please sign in to comment.