Improve error handling.

This commit is contained in:
Martin Edenhofer 2013-02-28 22:38:03 +01:00
parent fece93591d
commit 3cb73b82ae

View file

@ -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