{"action":"created","issue":{"url":"https://api.github.com/repos/lexich/redux-api/issues/97","repository_url":"https://api.github.com/repos/lexich/redux-api","labels_url":"https://api.github.com/repos/lexich/redux-api/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/lexich/redux-api/issues/97/comments","events_url":"https://api.github.com/repos/lexich/redux-api/issues/97/events","html_url":"https://github.com/lexich/redux-api/issues/97","id":171404057,"number":97,"title":"Error not set when failure occurs","user":{"login":"mikeengland","id":8333737,"avatar_url":"https://avatars.githubusercontent.com/u/8333737?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeengland","html_url":"https://github.com/mikeengland","followers_url":"https://api.github.com/users/mikeengland/followers","following_url":"https://api.github.com/users/mikeengland/following{/other_user}","gists_url":"https://api.github.com/users/mikeengland/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeengland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeengland/subscriptions","organizations_url":"https://api.github.com/users/mikeengland/orgs","repos_url":"https://api.github.com/users/mikeengland/repos","events_url":"https://api.github.com/users/mikeengland/events{/privacy}","received_events_url":"https://api.github.com/users/mikeengland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-16T13:09:31Z","updated_at":"2016-08-18T10:16:26Z","closed_at":null,"body":"For any adapter I have tried, the error is set as an empty object in the state if a failure occurs - even though when debugging the reducer, the error is present in the action payload.\r\n\r\nI changed the line `action: action.error` to `action: action.error.message` on my fork of redux-api and the error is then set correctly for any thrown errors.\r\nhttps://github.com/mikeengland/redux-api/commit/a4b12bdf8868f94e58bf405e484c0951b3e8271a"},"comment":{"url":"https://api.github.com/repos/lexich/redux-api/issues/comments/240682733","html_url":"https://github.com/lexich/redux-api/issues/97#issuecomment-240682733","issue_url":"https://api.github.com/repos/lexich/redux-api/issues/97","id":240682733,"user":{"login":"mikeengland","id":8333737,"avatar_url":"https://avatars.githubusercontent.com/u/8333737?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeengland","html_url":"https://github.com/mikeengland","followers_url":"https://api.github.com/users/mikeengland/followers","following_url":"https://api.github.com/users/mikeengland/following{/other_user}","gists_url":"https://api.github.com/users/mikeengland/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeengland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeengland/subscriptions","organizations_url":"https://api.github.com/users/mikeengland/orgs","repos_url":"https://api.github.com/users/mikeengland/repos","events_url":"https://api.github.com/users/mikeengland/events{/privacy}","received_events_url":"https://api.github.com/users/mikeengland/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T10:16:26Z","updated_at":"2016-08-18T10:16:26Z","body":"Interestingly, even the test is failing for me (undefined is returned):\r\n\r\n  1) reducerFn check:\r\n`\r\n      AssertionError: expected { Object (loading, data, ...) } to deeply equal { Object (loading, error, ...) }\r\n      + expected - actual\r\n\r\n       {\r\n         \"data\": {\r\n      -    \"msg\": \"Hello\"\r\n      +    \"msg\": \"Hello\"\r\n         }\r\n      -  \"error\": [undefined]\r\n      +  \"error\": \"Error\"\r\n         \"loading\": false\r\n         \"syncing\": false\r\n       }`"}}
{"actor":{"display_login":"mikeengland"}}