Skip to content

Commit

Permalink
Program: always throw error during .NET debug
Browse files Browse the repository at this point in the history
  • Loading branch information
electricduck committed Sep 19, 2024
1 parent 5c3b009 commit a216567
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Booski/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ await Parser.Default
{
var throwError = Environment.GetEnvironmentVariable("BOOSKI_DEBUG");

#if DEBUG
throwError = "true";
#endif

if (throwError == "1" || throwError == "true")
throw;
else
Expand Down

0 comments on commit a216567

Please sign in to comment.