diff options
-rw-r--r-- | stage2/Lib.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 1b19a5e..8063e2b 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -197,8 +197,9 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{ case scala.util.Failure(e) if Option(e.getMessage).getOrElse("") contains "toConsole" => value match { - case code:ExitCode => - code + case code if code.getClass.getSimpleName == "ExitCode" => + // FIXME: ExitCode needs to be part of the compatibility interfaces + ExitCode(Stage0Lib.get(code,"integer").asInstanceOf[Int]) case other => println( other.toString ) // no method .toConsole, using to String ExitCode.Success |