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:
JustArchi
2017-12-29 16:23:21 +01:00
parent 83792373e4
commit 325e7a1ff2

View File

@@ -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;