{"action":"created","issue":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35","repository_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller","labels_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35/comments","events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35/events","html_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35","id":138452659,"number":35,"title":"Pass the reponse object into the ErrorClass constructor","user":{"login":"gavboulton","id":3900826,"avatar_url":"https://avatars.githubusercontent.com/u/3900826?v=3","gravatar_id":"","url":"https://api.github.com/users/gavboulton","html_url":"https://github.com/gavboulton","followers_url":"https://api.github.com/users/gavboulton/followers","following_url":"https://api.github.com/users/gavboulton/following{/other_user}","gists_url":"https://api.github.com/users/gavboulton/gists{/gist_id}","starred_url":"https://api.github.com/users/gavboulton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavboulton/subscriptions","organizations_url":"https://api.github.com/users/gavboulton/orgs","repos_url":"https://api.github.com/users/gavboulton/repos","events_url":"https://api.github.com/users/gavboulton/events{/privacy}","received_events_url":"https://api.github.com/users/gavboulton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T11:35:48Z","updated_at":"2016-03-08T11:06:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35","html_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35","diff_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35.diff","patch_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35.patch"},"body":"Pass the reponse object to the getMessage method so that it can be used for error message construction. This will allow errors that use properties of `res.locals` to be built correctly."},"comment":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/comments/193730798","html_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35#issuecomment-193730798","issue_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35","id":193730798,"user":{"login":"oli-weighell2","id":17312421,"avatar_url":"https://avatars.githubusercontent.com/u/17312421?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-weighell2","html_url":"https://github.com/oli-weighell2","followers_url":"https://api.github.com/users/oli-weighell2/followers","following_url":"https://api.github.com/users/oli-weighell2/following{/other_user}","gists_url":"https://api.github.com/users/oli-weighell2/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-weighell2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-weighell2/subscriptions","organizations_url":"https://api.github.com/users/oli-weighell2/orgs","repos_url":"https://api.github.com/users/oli-weighell2/repos","events_url":"https://api.github.com/users/oli-weighell2/events{/privacy}","received_events_url":"https://api.github.com/users/oli-weighell2/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T11:06:22Z","updated_at":"2016-03-08T11:06:22Z","body":"I like it, adds some nice flexibility to error messages. If others are happy, let me know if you want me to look at the corresponding update to the form wizard."}}