trap all exceptions when restoring cache

This commit is contained in:
Mark Harrah 2011-04-19 17:54:03 -04:00
parent 6d36b3902f
commit bf013d2b3f
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ object FileBasedStore
}
def get(): Option[(Analysis, CompileSetup)] =
try { Some(getUncaught()) } catch { case io: IOException => None }
try { Some(getUncaught()) } catch { case _: Exception => None }
def getUncaught(): (Analysis, CompileSetup) =
IO.gzipFileIn(file)( in => read[(Analysis, CompileSetup)](in) )
}