diff --git a/lib/Cli.rb b/lib/Cli.rb index 8e2976a..31c4a57 100644 --- a/lib/Cli.rb +++ b/lib/Cli.rb @@ -47,7 +47,6 @@ class Cli @mpw.sync(@sync.get(@passwd), @config.last_update) @sync.update(File.open(@config.file_gpg).read) @config.setLastUpdate() - puts @sync.error_msg rescue Exception => e puts "#{I18n.t('cli.sync.error')}:\n#{e}" end diff --git a/lib/Sync.rb b/lib/Sync.rb index 72743a3..0c3ed31 100644 --- a/lib/Sync.rb +++ b/lib/Sync.rb @@ -63,7 +63,6 @@ class Sync @socket.puts send_msg.to_json msg = JSON.parse(@socket.gets) - puts msg case msg['error'] when nil, 'file_not_exist' tmp_file = "/tmp/mpw-#{MPW.generatePassword()}.gpg"