From 3cb73b82ae5cb12b5c9b81858b412c55bfef1aec Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 28 Feb 2013 22:38:03 +0100 Subject: [PATCH] Improve error handling. --- lib/session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.rb b/lib/session.rb index 91b102166..4cc143472 100644 --- a/lib/session.rb +++ b/lib/session.rb @@ -97,7 +97,7 @@ module Session file.flock( File::LOCK_UN ) file.close } -# return false if !File.exists?( path + 'a-' + filename ) + return false if !File.exists?( path + 'a-' + filename ) FileUtils.mv( path + 'a-' + filename, path + filename ) return true end