mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Always exit with non-zero error code in unhandled scenarios
This commit is contained in:
@@ -361,6 +361,7 @@ namespace ArchiSteamFarm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ArchiLogger.LogFatalException((Exception) args.ExceptionObject);
|
ArchiLogger.LogFatalException((Exception) args.ExceptionObject);
|
||||||
|
Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void UnobservedTaskExceptionHandler(object sender, UnobservedTaskExceptionEventArgs args) {
|
private static void UnobservedTaskExceptionHandler(object sender, UnobservedTaskExceptionEventArgs args) {
|
||||||
@@ -370,6 +371,7 @@ namespace ArchiSteamFarm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ArchiLogger.LogFatalException(args.Exception);
|
ArchiLogger.LogFatalException(args.Exception);
|
||||||
|
Exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
|
|||||||
Reference in New Issue
Block a user