{"action":"created","issue":{"url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/191","labels_url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/191/comments","events_url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/191/events","html_url":"https://github.com/cbdr/ruby-cb-api/pull/191","id":57178743,"number":191,"title":"Error response","user":{"login":"marcusmoncayo","id":4705142,"avatar_url":"https://avatars.githubusercontent.com/u/4705142?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusmoncayo","html_url":"https://github.com/marcusmoncayo","followers_url":"https://api.github.com/users/marcusmoncayo/followers","following_url":"https://api.github.com/users/marcusmoncayo/following{/other_user}","gists_url":"https://api.github.com/users/marcusmoncayo/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusmoncayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusmoncayo/subscriptions","organizations_url":"https://api.github.com/users/marcusmoncayo/orgs","repos_url":"https://api.github.com/users/marcusmoncayo/repos","events_url":"https://api.github.com/users/marcusmoncayo/events{/privacy}","received_events_url":"https://api.github.com/users/marcusmoncayo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-10T14:07:57Z","updated_at":"2015-02-10T15:23:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cbdr/ruby-cb-api/pulls/191","html_url":"https://github.com/cbdr/ruby-cb-api/pull/191","diff_url":"https://github.com/cbdr/ruby-cb-api/pull/191.diff","patch_url":"https://github.com/cbdr/ruby-cb-api/pull/191.patch"},"body":"I want to propose a change to the @parsed variable. Currently if there is an api response error we create the message using the to_s method on the hash/array. \r\n\r\nThis returns an ugly string i.e. \"[\\\"File upload data is larger than the maximum of 1024KB.\\\"]\"\r\n\r\nI changed it to join(',')  which will now return 'File upload data is larger than the maximum of 1024KB.'\r\n\r\nIf there is an array such as [much, awesome, so api, wow]\r\nit will now return  'much awesome,so api,wow'\r\n\r\nwe are currently doing some message conversion and translation and instead of regexing this in our app I thought it would be more elegant to do this in the error class. Thoughts?"},"comment":{"url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/comments/73717372","html_url":"https://github.com/cbdr/ruby-cb-api/pull/191#issuecomment-73717372","issue_url":"https://api.github.com/repos/cbdr/ruby-cb-api/issues/191","id":73717372,"user":{"login":"tkling","id":1123917,"avatar_url":"https://avatars.githubusercontent.com/u/1123917?v=3","gravatar_id":"","url":"https://api.github.com/users/tkling","html_url":"https://github.com/tkling","followers_url":"https://api.github.com/users/tkling/followers","following_url":"https://api.github.com/users/tkling/following{/other_user}","gists_url":"https://api.github.com/users/tkling/gists{/gist_id}","starred_url":"https://api.github.com/users/tkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkling/subscriptions","organizations_url":"https://api.github.com/users/tkling/orgs","repos_url":"https://api.github.com/users/tkling/repos","events_url":"https://api.github.com/users/tkling/events{/privacy}","received_events_url":"https://api.github.com/users/tkling/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T15:23:11Z","updated_at":"2015-02-10T15:23:11Z","body":"This feels like a minor bump to me. It wasn't really a bug (advertised functionality wasn't broken), and to me it doesn't feel like it's an interface change really (string => string). "}}