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 =