Skip to content

Commit

Permalink
Improved error handling in ECDH file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelvds committed Jan 29, 2024
1 parent 4609cfb commit b1783d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fiskaltrust.Launcher/Commands/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,10 @@ public static async Task<ECDiffieHellman> LoadCurve(Guid cashboxId, string acces
{
File.Delete(offlineClientEcdhPath);
}
catch
catch (Exception e)
{
/* handle exception if needed */
Log.Error(e, "Error occurred while loading or decrypting ECDH curve from file: {ClientEcdhPath}", clientEcdhPath);
throw;
}
}

Expand Down

0 comments on commit b1783d5

Please sign in to comment.