Improve error handling.
This commit is contained in:
parent
fece93591d
commit
3cb73b82ae
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ module Session
|
||||||
file.flock( File::LOCK_UN )
|
file.flock( File::LOCK_UN )
|
||||||
file.close
|
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 )
|
FileUtils.mv( path + 'a-' + filename, path + filename )
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue