Fix handling of passphrase error