Permalink
Browse files

Clearer message regarding missing controller action.

  • Loading branch information...
aljimenez committed Jun 13, 2014
1 parent 2bfe3b3 commit c13a070084f8fe587d7af6e608923aafec0f0c8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app/autoload/action-context.common.js
@@ -322,7 +322,7 @@ YUI.add('mojito-action-context', function(Y, NAME) {
actionFunction = '__call';
} else {
// If there is still no joy then die
- error = new Error("No method '" + command.action + "' on controller type '" + command.instance.type + "'");
+ error = new Error('Action "' + this.action + '" not defined by the controller named "' + this.instance.controller + '" of the "' + this.type + '" mojit.');
error.code = 404;
throw error;
}

0 comments on commit c13a070

Please sign in to comment.