1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 13:57:52 +00:00

mpw: add raise for read data

This commit is contained in:
nishiki 2016-05-07 09:40:39 +02:00
parent c1cab93dce
commit f724f09957

View file

@ -24,9 +24,7 @@ class MPW
@wallet_file = wallet_file
end
# Decrypt a gpg file
# @args: password -> the GPG key password
# @rtrn: true if data has been decrypted
# Read mpw file
def read_data
@config = nil
@keys = []
@ -74,6 +72,8 @@ class MPW
)
end
end
rescue Exception => e
raise "#{I18n.t('error.mpw_file.read_data')}\n#{e}"
end
# Encrypt a file