{"action":"closed","issue":{"url":"https://api.github.com/repos/ozone-development/ozp-iwc/issues/372","labels_url":"https://api.github.com/repos/ozone-development/ozp-iwc/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/ozone-development/ozp-iwc/issues/372/comments","events_url":"https://api.github.com/repos/ozone-development/ozp-iwc/issues/372/events","html_url":"https://github.com/ozone-development/ozp-iwc/issues/372","id":122152373,"number":372,"title":"Intent errors not handle-able","user":{"login":"Kevin-K","id":7290455,"avatar_url":"https://avatars.githubusercontent.com/u/7290455?v=3","gravatar_id":"","url":"https://api.github.com/users/Kevin-K","html_url":"https://github.com/Kevin-K","followers_url":"https://api.github.com/users/Kevin-K/followers","following_url":"https://api.github.com/users/Kevin-K/following{/other_user}","gists_url":"https://api.github.com/users/Kevin-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Kevin-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kevin-K/subscriptions","organizations_url":"https://api.github.com/users/Kevin-K/orgs","repos_url":"https://api.github.com/users/Kevin-K/repos","events_url":"https://api.github.com/users/Kevin-K/events{/privacy}","received_events_url":"https://api.github.com/users/Kevin-K/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ozone-development/ozp-iwc/labels/API:%20intents.api","name":"API: intents.api","color":"009800"},{"url":"https://api.github.com/repos/ozone-development/ozp-iwc/labels/Severity:%20Minor","name":"Severity: Minor","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"Kevin-K","id":7290455,"avatar_url":"https://avatars.githubusercontent.com/u/7290455?v=3","gravatar_id":"","url":"https://api.github.com/users/Kevin-K","html_url":"https://github.com/Kevin-K","followers_url":"https://api.github.com/users/Kevin-K/followers","following_url":"https://api.github.com/users/Kevin-K/following{/other_user}","gists_url":"https://api.github.com/users/Kevin-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Kevin-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kevin-K/subscriptions","organizations_url":"https://api.github.com/users/Kevin-K/orgs","repos_url":"https://api.github.com/users/Kevin-K/repos","events_url":"https://api.github.com/users/Kevin-K/events{/privacy}","received_events_url":"https://api.github.com/users/Kevin-K/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-14T23:02:31Z","updated_at":"2015-12-15T14:50:12Z","closed_at":"2015-12-15T14:50:12Z","body":"Currently if an intent fails the invoker does not receive word of the failure.\r\n\r\nSo long as the intent handler function throws/bubbles-up an error, the IWC catches it and returns it to the bus.\r\n\r\nThe client that invoked the intent (the intent caller) should receive the message of the error thrown, this will allow developers to enforce parameter formatting on their intent handlers.\r\n\r\nCode is working on `fix-intents`: 2 snippets to see the error message passing can be found by running these 2 codepens and invoking the intent with a malformed entity (anything that is valid json and not an array).\r\n\r\nhttp://s.codepen.io/Kevin-K/debug/ZQbGZq\r\nhttp://codepen.io/Kevin-K/debug/MKKgYJ\r\n\r\nNeed to have iwc running locally on port 13000 for codepens to work as `fix-intents` isnt online."}}