{"action":"created","issue":{"url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/17","labels_url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/17/comments","events_url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/17/events","html_url":"https://github.com/acdlite/flux-standard-action/issues/17","id":104504535,"number":17,"title":"What is the reason error property is boolean?","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-02T15:15:50Z","updated_at":"2015-11-03T03:46:22Z","closed_at":null,"body":"as opposed to an instance of `Error` object. Boolean flag is vague. It just says what the error is and does not standardise the method of getting error description. Docs say that `payload` by convention should be an `Error` object."},"comment":{"url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/comments/153232677","html_url":"https://github.com/acdlite/flux-standard-action/issues/17#issuecomment-153232677","issue_url":"https://api.github.com/repos/acdlite/flux-standard-action/issues/17","id":153232677,"user":{"login":"mattkrick","id":5514175,"avatar_url":"https://avatars.githubusercontent.com/u/5514175?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkrick","html_url":"https://github.com/mattkrick","followers_url":"https://api.github.com/users/mattkrick/followers","following_url":"https://api.github.com/users/mattkrick/following{/other_user}","gists_url":"https://api.github.com/users/mattkrick/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkrick/subscriptions","organizations_url":"https://api.github.com/users/mattkrick/orgs","repos_url":"https://api.github.com/users/mattkrick/repos","events_url":"https://api.github.com/users/mattkrick/events{/privacy}","received_events_url":"https://api.github.com/users/mattkrick/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T03:46:22Z","updated_at":"2015-11-03T03:46:22Z","body":"I agree with where this is going. If there's an error, it's in my action type & that action creator can handle the error. What I don't like is having the error itself in the payload instead of the action that caused the error (or the multiple failed items if it's a batch job). I say let error be an Error object & for those edge cases where the action type doesn't have an ERROR/FAIL suffix, they can `action.error instanceof Error`. "}}