{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/comments/72005610","id":72005610,"diff_hunk":"@@ -104,6 +110,19 @@ function messageHandler(client, event) {\n   }\n }\n \n+// When doing singular operations and we retrieve and error this function will throw that error.\n+function throwUnlessBulk(path, result) {\n+  var isSingularOperation = typeof path === 'string';\n+\n+  // CRUFT: When framework starts always appending errors we can remove the extra results.errors check","path":"lib/client.js","position":39,"original_position":34,"commit_id":"bda73e7778d7ad2bdc3516e7f44859accbc7db69","original_commit_id":"221c935dc2f8066b04e333cd6f5a0d8ed96825d6","user":{"login":"ocke","id":5171412,"avatar_url":"https://avatars.githubusercontent.com/u/5171412?v=3","gravatar_id":"","url":"https://api.github.com/users/ocke","html_url":"https://github.com/ocke","followers_url":"https://api.github.com/users/ocke/followers","following_url":"https://api.github.com/users/ocke/following{/other_user}","gists_url":"https://api.github.com/users/ocke/gists{/gist_id}","starred_url":"https://api.github.com/users/ocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocke/subscriptions","organizations_url":"https://api.github.com/users/ocke/orgs","repos_url":"https://api.github.com/users/ocke/repos","events_url":"https://api.github.com/users/ocke/events{/privacy}","received_events_url":"https://api.github.com/users/ocke/received_events","type":"User","site_admin":false},"body":"yes https://github.com/zendesk/zendesk_app_framework/pull/588","created_at":"2016-07-25T03:29:50Z","updated_at":"2016-07-25T03:29:50Z","html_url":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23#discussion_r72005610","pull_request_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/comments/72005610"},"html":{"href":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23#discussion_r72005610"},"pull_request":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23","id":76212638,"html_url":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23","diff_url":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23.diff","patch_url":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23.patch","issue_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/23","number":23,"state":"open","locked":false,"title":"Single requests error throw","user":{"login":"ocke","id":5171412,"avatar_url":"https://avatars.githubusercontent.com/u/5171412?v=3","gravatar_id":"","url":"https://api.github.com/users/ocke","html_url":"https://github.com/ocke","followers_url":"https://api.github.com/users/ocke/followers","following_url":"https://api.github.com/users/ocke/following{/other_user}","gists_url":"https://api.github.com/users/ocke/gists{/gist_id}","starred_url":"https://api.github.com/users/ocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocke/subscriptions","organizations_url":"https://api.github.com/users/ocke/orgs","repos_url":"https://api.github.com/users/ocke/repos","events_url":"https://api.github.com/users/ocke/events{/privacy}","received_events_url":"https://api.github.com/users/ocke/received_events","type":"User","site_admin":false},"body":":v:\r\n\r\n/cc @zendesk/vegemite\r\n\r\n### Description\r\nSDK will throw errors when doing single requests, but not in bulk requests.\r\nAlso we now have an errors object which the user can use to look at the errors.\r\n\r\n### References\r\n* JIRA: \r\n* PR: https://github.com/zendesk/zendesk_app_framework/pull/588\r\n\r\n### Risks","created_at":"2016-07-05T02:51:14Z","updated_at":"2016-07-25T03:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2578dea219a326eb0c8f632439c443d4098c6a7c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23/commits","review_comments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23/comments","review_comment_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/23/comments","statuses_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/statuses/bda73e7778d7ad2bdc3516e7f44859accbc7db69","head":{"label":"zendesk:olaf/single_error","ref":"olaf/single_error","sha":"bda73e7778d7ad2bdc3516e7f44859accbc7db69","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":27542340,"name":"zendesk_app_framework_sdk","full_name":"zendesk/zendesk_app_framework_sdk","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_app_framework_sdk","description":"The Zendesk App Framework (ZAF) SDK is a JavaScript library that simplifies cross-frame communication between iframed apps and the Zendesk App Framework","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk","forks_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/deployments","created_at":"2014-12-04T13:45:12Z","updated_at":"2016-07-24T07:45:16Z","pushed_at":"2016-07-25T03:29:16Z","git_url":"git://github.com/zendesk/zendesk_app_framework_sdk.git","ssh_url":"git@github.com:zendesk/zendesk_app_framework_sdk.git","clone_url":"https://github.com/zendesk/zendesk_app_framework_sdk.git","svn_url":"https://github.com/zendesk/zendesk_app_framework_sdk","homepage":"https://developer.zendesk.com/apps/","size":208,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":14,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"b738403653e991035ce59864cf8381366530a616","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":27542340,"name":"zendesk_app_framework_sdk","full_name":"zendesk/zendesk_app_framework_sdk","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_app_framework_sdk","description":"The Zendesk App Framework (ZAF) SDK is a JavaScript library that simplifies cross-frame communication between iframed apps and the Zendesk App Framework","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk","forks_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/deployments","created_at":"2014-12-04T13:45:12Z","updated_at":"2016-07-24T07:45:16Z","pushed_at":"2016-07-25T03:29:16Z","git_url":"git://github.com/zendesk/zendesk_app_framework_sdk.git","ssh_url":"git@github.com:zendesk/zendesk_app_framework_sdk.git","clone_url":"https://github.com/zendesk/zendesk_app_framework_sdk.git","svn_url":"https://github.com/zendesk/zendesk_app_framework_sdk","homepage":"https://developer.zendesk.com/apps/","size":208,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23"},"html":{"href":"https://github.com/zendesk/zendesk_app_framework_sdk/pull/23"},"issue":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/23"},"comments":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/zendesk_app_framework_sdk/statuses/bda73e7778d7ad2bdc3516e7f44859accbc7db69"}}}}
{"actor":{"display_login":"ocke"}}