Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix misleading error messages in AbstractCommandExecutor

  • Loading branch information...
commit a75c18ee36d4540ecae02da3219f4492c333d4b5 1 parent 9532ebe
Jens Halm authored
View
4 src/main/org/spicefactory/lib/command/base/AbstractCommandExecutor.as
@@ -317,7 +317,7 @@ 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();
}
@@ -325,7 +325,7 @@ public class AbstractCommandExecutor extends AbstractSuspendableCommand implemen
* @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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.