{"action":"opened","issue":{"url":"https://api.github.com/repos/restify/conductor/issues/13","labels_url":"https://api.github.com/repos/restify/conductor/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/restify/conductor/issues/13/comments","events_url":"https://api.github.com/repos/restify/conductor/issues/13/events","html_url":"https://github.com/restify/conductor/issues/13","id":111112721,"number":13,"title":"Provide a little more friendly error for non-flattened handlers","user":{"login":"micahr","id":111574,"avatar_url":"https://avatars.githubusercontent.com/u/111574?v=3","gravatar_id":"","url":"https://api.github.com/users/micahr","html_url":"https://github.com/micahr","followers_url":"https://api.github.com/users/micahr/followers","following_url":"https://api.github.com/users/micahr/following{/other_user}","gists_url":"https://api.github.com/users/micahr/gists{/gist_id}","starred_url":"https://api.github.com/users/micahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahr/subscriptions","organizations_url":"https://api.github.com/users/micahr/orgs","repos_url":"https://api.github.com/users/micahr/repos","events_url":"https://api.github.com/users/micahr/events{/privacy}","received_events_url":"https://api.github.com/users/micahr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T06:12:48Z","updated_at":"2015-10-13T06:12:48Z","closed_at":null,"body":"If a set of handlers for a bucket isn't properly flattened, the error message returned is rather cryptic, provide a bit more help by warning that the handler is an array instead of a function.\r\n\r\n```\r\nTypeError: object is not a function\r\n        at runHandlers (/Users/mransdell/src/shakti/app/node_modules/restify-conductor/lib/handlers/run.js:105:21)\r\n        at Object.func (/Users/mransdell/src/shakti/app/node_modules/restify-conductor/node_modules/vasync/lib/vasync.js:246:12)\r\n        at Immediate._onImmediate (/Users/mransdell/src/shakti/app/node_modules/restify-conductor/node_modules/vasync/lib/vasync.js:213:20)\r\n        at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n```\r\n\r\n\r\nhttps://github.com/restify/conductor/blob/master/lib/handlers/run.js#L104"}}