From f724f09957d7e707ed24891c522860cffb072347 Mon Sep 17 00:00:00 2001 From: nishiki Date: Sat, 7 May 2016 09:40:39 +0200 Subject: [PATCH] mpw: add raise for read data --- lib/mpw/mpw.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mpw/mpw.rb b/lib/mpw/mpw.rb index d022849..669df3c 100644 --- a/lib/mpw/mpw.rb +++ b/lib/mpw/mpw.rb @@ -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