mirror of https://github.com/sbt/sbt.git
Don't catch throwable
This commit is contained in:
parent
fdea36118d
commit
a6193f2ed7
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
package sbt
|
||||
|
||||
import java.io.File
|
||||
import java.io.{ File, IOException }
|
||||
import CacheIO.{ fromFile, toFile }
|
||||
import sbinary.Format
|
||||
import scala.reflect.Manifest
|
||||
|
|
@ -42,7 +42,7 @@ object Tracked {
|
|||
val previous: Option[O] = try {
|
||||
fromJsonFile[O](cacheFile).toOption
|
||||
} catch {
|
||||
case e: Throwable => None
|
||||
case e: IOException => None
|
||||
}
|
||||
val next = f(in, previous)
|
||||
IO.createDirectory(cacheFile.getParentFile)
|
||||
|
|
|
|||
Loading…
Reference in New Issue