Add log errors for crypt file edge cases

This commit is contained in:
JustArchi
2022-09-08 20:08:39 +02:00
parent 57956e0ed9
commit 712b53cb72

View File

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