Skip to content

Commit 2baad98

Browse files
committed
Added code suggestions
1 parent 714374c commit 2baad98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,9 @@ class ${className} extends (() => Any) with java.io.Serializable {
471471
val nestedClassPath: IO[String] =
472472
jarResource
473473
.use(jar => IO(jar.getManifest.getMainAttributes.getValue("Class-Path")))
474-
.handleError { throwable: Throwable =>
475-
throw new CompilerException(List(List(throwable.getMessage)))
474+
.handleError {
475+
case scala.util.control.NonFatal(e) =>
476+
throw new CompilerException(List(List(e.getMessage)))
476477
}
477478

478479
nestedClassPath.map {

0 commit comments

Comments
 (0)