mirror of https://github.com/sbt/sbt.git
trap all exceptions when restoring cache
This commit is contained in:
parent
6d36b3902f
commit
bf013d2b3f
|
|
@ -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) )
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue