From 797efa2b93e5434759ce43b080ca15c1041ca9cb Mon Sep 17 00:00:00 2001 From: nishiki Date: Thu, 5 May 2016 23:46:48 +0200 Subject: [PATCH] cli: catch exception in decrypt --- lib/mpw/ui/cli.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mpw/ui/cli.rb b/lib/mpw/ui/cli.rb index f4aba00..868ccfe 100644 --- a/lib/mpw/ui/cli.rb +++ b/lib/mpw/ui/cli.rb @@ -95,6 +95,9 @@ class Cli end @mpw.read_data + rescue Exception => e + puts "#{I18n.t('display.error')} #11: #{e}".red + exit 2 end # Display the query's result