Skip to content

Commit

Permalink
Add "case e: Throwable" in some catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinduks committed May 10, 2013
1 parent f4c44a0 commit d28d8e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/com/Main.scala
Expand Up @@ -80,6 +80,7 @@ object Main {
is.close
} catch {
case e: NoSuchFileException => println("The file \"%s\" was not found.".format(sourcePath.toString))
case e: Throwable => e.printStackTrace
}
}

Expand Down Expand Up @@ -117,6 +118,7 @@ object Main {
FileUtils.deleteDirectory(extractionDir.toFile)
} catch {
case e: FileNotFoundException => println("The file \"%s\" was not found.".format(sourcePath.toString))
case e: Throwable => e.printStackTrace
}
}

Expand Down

0 comments on commit d28d8e3

Please sign in to comment.