{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/3285","labels_url":"https://api.github.com/repos/bolt/bolt/issues/3285/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/3285/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/3285/events","html_url":"https://github.com/bolt/bolt/pull/3285","id":65443972,"number":3285,"title":"Restore BoltResponse __toString with nicer error handling","user":{"login":"rossriley","id":5082,"avatar_url":"https://avatars.githubusercontent.com/u/5082?v=3","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T12:57:00Z","updated_at":"2015-03-31T15:47:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bolt/bolt/pulls/3285","html_url":"https://github.com/bolt/bolt/pull/3285","diff_url":"https://github.com/bolt/bolt/pull/3285.diff","patch_url":"https://github.com/bolt/bolt/pull/3285.patch"},"body":"This should be a decent compromise between the two problems.\r\n\r\nThe __toString method is restored so extensions that depend on it will continue to function identically.\r\n\r\nWhilst PHP disallows exceptions being thrown in the __toString method it seems to be fine with triggering normal errors so, we can catch the original exception and trigger an error with the original exception message."},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/88138981","html_url":"https://github.com/bolt/bolt/pull/3285#issuecomment-88138981","issue_url":"https://api.github.com/repos/bolt/bolt/issues/3285","id":88138981,"user":{"login":"bobdenotter","id":1833361,"avatar_url":"https://avatars.githubusercontent.com/u/1833361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobdenotter","html_url":"https://github.com/bobdenotter","followers_url":"https://api.github.com/users/bobdenotter/followers","following_url":"https://api.github.com/users/bobdenotter/following{/other_user}","gists_url":"https://api.github.com/users/bobdenotter/gists{/gist_id}","starred_url":"https://api.github.com/users/bobdenotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobdenotter/subscriptions","organizations_url":"https://api.github.com/users/bobdenotter/orgs","repos_url":"https://api.github.com/users/bobdenotter/repos","events_url":"https://api.github.com/users/bobdenotter/events{/privacy}","received_events_url":"https://api.github.com/users/bobdenotter/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T15:47:18Z","updated_at":"2015-03-31T15:47:18Z","body":"Thanks! :+1: \r\n\r\nI'll cherry-pick this for 2.1.x as well! "}}