From 1298caed2e43e6d970b190bd359ad565c32cc72f Mon Sep 17 00:00:00 2001 From: nishiki Date: Wed, 15 Jan 2014 23:20:22 +0100 Subject: [PATCH] remove debug puts --- lib/Cli.rb | 1 - lib/Sync.rb | 1 - 2 files changed, 2 deletions(-) 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"