mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-10 13:44:22 +00:00
Add log errors for crypt file edge cases
This commit is contained in:
@@ -118,6 +118,8 @@ internal static class Program {
|
||||
}
|
||||
|
||||
if (!File.Exists(cryptKeyFile)) {
|
||||
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsInvalid, nameof(cryptKeyFile)));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -132,6 +134,8 @@ internal static class Program {
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(cryptKey)) {
|
||||
ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsEmpty, nameof(cryptKeyFile)));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user