From 4ce57596d9727b940cdf0f097c891acede41f1a2 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sat, 19 Mar 2011 14:07:03 -0400 Subject: [PATCH] fix exit code --- main/State.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/State.scala b/main/State.scala index e913ff732..3b9e78991 100644 --- a/main/State.scala +++ b/main/State.scala @@ -62,7 +62,7 @@ object State def continue = setNext(Next.Continue) def reboot(full: Boolean) = throw new xsbti.FullReload(s.commands.toArray, full) def reload = setNext(Next.Reload) - def exit(ok: Boolean) = setNext(if(ok) Next.Fail else Next.Done) + def exit(ok: Boolean) = setNext(if(ok) Next.Done else Next.Fail) def get[T](key: AttributeKey[T]) = s.attributes.get(key) def put[T](key: AttributeKey[T], value: T) = s.copy(attributes = s.attributes.put(key, value)) def fail =