diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-11 08:16:53 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-11 08:16:53 -0400 |
commit | 3468978cf3781ac9b00f30e37f9958d033dd7abb (patch) | |
tree | 21996526a84eb16697ef0e22de0cafce479f60de /stage2/Lib.scala | |
parent | a1a75a9800502595c6f729e517236f07d1b38419 (diff) | |
download | cbt-3468978cf3781ac9b00f30e37f9958d033dd7abb.tar.gz cbt-3468978cf3781ac9b00f30e37f9958d033dd7abb.tar.bz2 cbt-3468978cf3781ac9b00f30e37f9958d033dd7abb.zip |
Hack to not display ExitCode unnecessarily
Diffstat (limited to 'stage2/Lib.scala')
-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 |