[openpgp] Fix error logging

Fixes #446
1 job for master in 3 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Test
passed #20134
run-test

00:00:03