ensure log doesn't die if no file there

This commit is contained in:
John Bintz 2012-08-09 13:58:05 -04:00
parent ce5128b244
commit be054685ac
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Unison
super(*args)
@file = file
@current_log_size = File.size(@file)
@current_log_size = File.exist?(@file) ? File.size(@file) : 0
self.plainText = INITIAL
self.readOnly = true