Skip to content

Commit

Permalink
Return a non-zero exit code if processor fails
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Apr 9, 2024
1 parent d761497 commit b5a3ecf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ public void StartDebugger()
#if DEBUG
throw;
#else
Environment.Exit(1);
return;
#endif
}
Expand Down
3 changes: 3 additions & 0 deletions Program.Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ public static void ExecuteProcessor(Processor processor)
OnExecutionException(e, processor);
#if DEBUG
throw;
#else
Environment.Exit(1);
return;
#endif
}
}
Expand Down
3 changes: 3 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ private static void DisplayLicense()
Console.ResetColor();
#if DEBUG
throw;
#else
Environment.Exit(1);
return;
#endif
}
}
Expand Down

0 comments on commit b5a3ecf

Please sign in to comment.