{"action":"closed","issue":{"url":"https://api.github.com/repos/Financial-Times/o-errors/issues/24","labels_url":"https://api.github.com/repos/Financial-Times/o-errors/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Financial-Times/o-errors/issues/24/comments","events_url":"https://api.github.com/repos/Financial-Times/o-errors/issues/24/events","html_url":"https://github.com/Financial-Times/o-errors/issues/24","id":114280573,"number":24,"title":"Context modified in transformError is not used","user":{"login":"pornel","id":72159,"avatar_url":"https://avatars.githubusercontent.com/u/72159?v=3","gravatar_id":"","url":"https://api.github.com/users/pornel","html_url":"https://github.com/pornel","followers_url":"https://api.github.com/users/pornel/followers","following_url":"https://api.github.com/users/pornel/following{/other_user}","gists_url":"https://api.github.com/users/pornel/gists{/gist_id}","starred_url":"https://api.github.com/users/pornel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pornel/subscriptions","organizations_url":"https://api.github.com/users/pornel/orgs","repos_url":"https://api.github.com/users/pornel/repos","events_url":"https://api.github.com/users/pornel/events{/privacy}","received_events_url":"https://api.github.com/users/pornel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tom-parker","id":900140,"avatar_url":"https://avatars.githubusercontent.com/u/900140?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-parker","html_url":"https://github.com/tom-parker","followers_url":"https://api.github.com/users/tom-parker/followers","following_url":"https://api.github.com/users/tom-parker/following{/other_user}","gists_url":"https://api.github.com/users/tom-parker/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-parker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-parker/subscriptions","organizations_url":"https://api.github.com/users/tom-parker/orgs","repos_url":"https://api.github.com/users/tom-parker/repos","events_url":"https://api.github.com/users/tom-parker/events{/privacy}","received_events_url":"https://api.github.com/users/tom-parker/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-10-30T14:29:22Z","updated_at":"2015-11-04T16:29:45Z","closed_at":"2015-11-04T16:29:45Z","body":"o-errors can be initialized with a `transformError`  callback. Only `obj.error` result of this callback is used. `obj.context` is ignored.\r\n\r\nThis makes it impossible to sanitise the context object (e.g to work around #23), and makes it impossible to preserve additional data extracted from the error object.\r\n\r\nBoth transformed .error and .context results from the transform function should be used instead of original values."}}