Fix opengpg error return

Maybe the formatting is not wanted, but the first commit is needed.