mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 00:20:08 +00:00
Misc
We can (and should) log console exceptions also to the console, since we're no longer waiting for user input at this point.
This commit is contained in:
@@ -122,11 +122,12 @@ namespace ArchiSteamFarm {
|
||||
Console.Clear(); // For security purposes
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Logging.OnUserInputEnd();
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
return null;
|
||||
} finally {
|
||||
Logging.OnUserInputEnd();
|
||||
}
|
||||
|
||||
Logging.OnUserInputEnd();
|
||||
}
|
||||
|
||||
return !string.IsNullOrEmpty(result) ? result.Trim() : null;
|
||||
|
||||
Reference in New Issue
Block a user