{"action":"closed","issue":{"url":"https://api.github.com/repos/DockYard/ember-route-action-helper/issues/21","repository_url":"https://api.github.com/repos/DockYard/ember-route-action-helper","labels_url":"https://api.github.com/repos/DockYard/ember-route-action-helper/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/DockYard/ember-route-action-helper/issues/21/comments","events_url":"https://api.github.com/repos/DockYard/ember-route-action-helper/issues/21/events","html_url":"https://github.com/DockYard/ember-route-action-helper/issues/21","id":153087885,"number":21,"title":"Fail immediately instead of when the action is invoked?","user":{"login":"nucleartide","id":914228,"avatar_url":"https://avatars.githubusercontent.com/u/914228?v=3","gravatar_id":"","url":"https://api.github.com/users/nucleartide","html_url":"https://github.com/nucleartide","followers_url":"https://api.github.com/users/nucleartide/followers","following_url":"https://api.github.com/users/nucleartide/following{/other_user}","gists_url":"https://api.github.com/users/nucleartide/gists{/gist_id}","starred_url":"https://api.github.com/users/nucleartide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nucleartide/subscriptions","organizations_url":"https://api.github.com/users/nucleartide/orgs","repos_url":"https://api.github.com/users/nucleartide/repos","events_url":"https://api.github.com/users/nucleartide/events{/privacy}","received_events_url":"https://api.github.com/users/nucleartide/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-04T18:53:24Z","updated_at":"2016-05-07T03:26:21Z","closed_at":"2016-05-07T03:26:21Z","body":"Hey all,\r\n\r\nFirst of all, great work with the library! 👍  So I noticed that `route-action` doesn't immediately report whether the route action exists, while `action` does. For example:\r\n\r\n```hbs\r\n{{!--\r\n  upon visiting route, will fail with \"Uncaught Error: An action\r\n  named 'doesNotExist' was not found in (generated login controller).\"\r\n--}}\r\n{{login-panel authorize=(action 'doesNotExist')}}\r\n\r\n{{!-- upon visiting route, will not fail immediately until \"authorize\" action is called --}}\r\n{{login-panel authorize=(route-action 'doesNotExist')}}\r\n```\r\n\r\nIt seems like you would get the desired immediate error if [lines 44 to 45][1] are moved out of that function expression.\r\n\r\nI feel like it doesn't really matter with good tests, but what do you think?\r\n\r\n[1]: https://github.com/DockYard/ember-route-action-helper/blob/master/addon/helpers/route-action.js#L44"}}