{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/252","repository_url":"https://api.github.com/repos/electron-userland/electron-packager","labels_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/252/comments","events_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/252/events","html_url":"https://github.com/electron-userland/electron-packager/issues/252","id":131534050,"number":252,"title":"`err` callback doesn't seem to always be an Error","user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron-userland/electron-packager/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-05T02:08:16Z","updated_at":"2016-02-29T05:12:58Z","closed_at":"2016-02-29T02:36:51Z","body":"The `err` object passed back from the callback is sometimes what seems to be an array of Objects of unknown shape, instead of an Error\r\n\r\n```\r\n# Cause EACCES to be thrown\r\nchmod 000 ./path/to/one/of/my/files\r\n```\r\n\r\nThen later:\r\n\r\n```js\r\npackager(opts, (err, target) => {\r\n  console.log(err instanceof Error);\r\n  >> false\r\n\r\n  console.log(err instanceof Array);\r\n  >> true\r\n\r\n  console.log(JSON.stringify(err[0]));\r\n  >> {\"errno\":-13,\"code\":\"EACCES\",\"syscall\":\"stat\",\"path\":\"/path/to/one/of/my/files\"}\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-packager/issues/comments/190041097","html_url":"https://github.com/electron-userland/electron-packager/issues/252#issuecomment-190041097","issue_url":"https://api.github.com/repos/electron-userland/electron-packager/issues/252","id":190041097,"user":{"login":"malept","id":11417,"avatar_url":"https://avatars.githubusercontent.com/u/11417?v=3","gravatar_id":"","url":"https://api.github.com/users/malept","html_url":"https://github.com/malept","followers_url":"https://api.github.com/users/malept/followers","following_url":"https://api.github.com/users/malept/following{/other_user}","gists_url":"https://api.github.com/users/malept/gists{/gist_id}","starred_url":"https://api.github.com/users/malept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malept/subscriptions","organizations_url":"https://api.github.com/users/malept/orgs","repos_url":"https://api.github.com/users/malept/repos","events_url":"https://api.github.com/users/malept/events{/privacy}","received_events_url":"https://api.github.com/users/malept/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T05:12:58Z","updated_at":"2016-02-29T05:12:58Z","body":"That would be #151."}}