Skip to content

Commit b5a3ecf

Browse files
committed
Return a non-zero exit code if processor fails
1 parent d761497 commit b5a3ecf

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Debugger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ public void StartDebugger()
324324
#if DEBUG
325325
throw;
326326
#else
327+
Environment.Exit(1);
327328
return;
328329
#endif
329330
}

Program.Shared.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ public static void ExecuteProcessor(Processor processor)
264264
OnExecutionException(e, processor);
265265
#if DEBUG
266266
throw;
267+
#else
268+
Environment.Exit(1);
269+
return;
267270
#endif
268271
}
269272
}

Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ private static void DisplayLicense()
580580
Console.ResetColor();
581581
#if DEBUG
582582
throw;
583+
#else
584+
Environment.Exit(1);
585+
return;
583586
#endif
584587
}
585588
}

0 commit comments

Comments
 (0)