mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 15:43:04 +00:00
mpw: add raise for read data
This commit is contained in:
parent
c1cab93dce
commit
f724f09957
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,7 @@ class MPW
|
||||||
@wallet_file = wallet_file
|
@wallet_file = wallet_file
|
||||||
end
|
end
|
||||||
|
|
||||||
# Decrypt a gpg file
|
# Read mpw file
|
||||||
# @args: password -> the GPG key password
|
|
||||||
# @rtrn: true if data has been decrypted
|
|
||||||
def read_data
|
def read_data
|
||||||
@config = nil
|
@config = nil
|
||||||
@keys = []
|
@keys = []
|
||||||
|
@ -74,6 +72,8 @@ class MPW
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue Exception => e
|
||||||
|
raise "#{I18n.t('error.mpw_file.read_data')}\n#{e}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Encrypt a file
|
# Encrypt a file
|
||||||
|
|
Loading…
Reference in a new issue