aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-05-11 08:17:10 -0400
committerJan Christopher Vogt <oss.nsp@cvogt.org>2016-05-11 08:17:10 -0400
commitba203490c976adaa8001c4398e2c5e3befcc8757 (patch)
tree3f65f7d4437689ba0f5a4fcdf5c326369aa2ef9b /stage2/Lib.scala
parentcfdaef7e1d6b5f07d19db35bc9f33de96c836191 (diff)
parent3468978cf3781ac9b00f30e37f9958d033dd7abb (diff)
downloadcbt-ba203490c976adaa8001c4398e2c5e3befcc8757.tar.gz
cbt-ba203490c976adaa8001c4398e2c5e3befcc8757.tar.bz2
cbt-ba203490c976adaa8001c4398e2c5e3befcc8757.zip
Merge pull request #125 from cvogt/chris
a few minor things
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala5
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