agroal / pgagroal

High-performance connection pool for PostgreSQL
https://agroal.github.io/pgagroal/
BSD 3-Clause "New" or "Revised" License
684 stars 61 forks source link

[#481] Add better error message about `Invalid master key file` #483

Closed fluca1978 closed 3 weeks ago

fluca1978 commented 3 weeks ago

When a users file, (frontend, admins or users files) cannot be decrypted, a generic Invalid master key file was raised. This commit adds the target file that cannot be decrypted, so that the user can understand which file has to be adjusted (e.g., pgagroal-admin usage on such file).

Makes the error messages consistent with those about a missing file.

Close #481

jesperpedersen commented 3 weeks ago

:+1: