Don't catch throwable

This commit is contained in:
Eugene Yokota 2015-03-09 21:20:52 -04:00
parent fdea36118d
commit a6193f2ed7
1 changed files with 2 additions and 2 deletions

View File

@ -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)