Skip to content

Commit 9f72a0b

Browse files
Merge pull request #23 from Lordfirespeed/main
Fix non-zero exit-code being unset
2 parents 6764f82 + 7c18e53 commit 9f72a0b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

NetcodePatcher.Cli/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
{
1313
return await new CommandLineBuilder(new NetcodePatchCommand())
1414
.UseDefaults()
15-
.UseExceptionHandler((ex, _) => Log.Fatal(ex, "Exception, cannot continue!"), -1)
15+
.UseExceptionHandler((ex, ctx) => {
16+
Log.Fatal(ex, "Exception, cannot continue!");
17+
ctx.ExitCode = -1;
18+
})
1619
.Build()
1720
.InvokeAsync(args);
1821
}
1922
finally
2023
{
2124
Log.CloseAndFlush();
22-
}
25+
}

0 commit comments

Comments
 (0)