Skip to content
Browse files

Fix misleading error messages in AbstractCommandExecutor

  • Loading branch information...
1 parent 9532ebe commit a75c18ee36d4540ecae02da3219f4492c333d4b5 Jens Halm committed Dec 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/org/spicefactory/lib/command/base/AbstractCommandExecutor.as
View
4 src/main/org/spicefactory/lib/command/base/AbstractCommandExecutor.as
@@ -317,15 +317,15 @@ public class AbstractCommandExecutor extends AbstractSuspendableCommand implemen
* @private
*/
public override function suspend () : void {
- if (!suspendable) throw new IllegalStateError("Command group '" + this + "' cannot be suspended");
+ if (!suspendable) throw new IllegalStateError("Command '" + this + "' cannot be suspended");
super.suspend();
}
/**
* @private
*/
public override function cancel () : void {
- if (!cancellable) throw new IllegalStateError("Command group '" + this + "' cannot be cancelled");
+ if (!cancellable) throw new IllegalStateError("Command '" + this + "' cannot be cancelled");
super.cancel();
}

0 comments on commit a75c18e

Please sign in to comment.
Something went wrong with that request. Please try again.