{"action":"created","issue":{"url":"https://api.github.com/repos/philbooth/check-types.js/issues/54","labels_url":"https://api.github.com/repos/philbooth/check-types.js/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/philbooth/check-types.js/issues/54/comments","events_url":"https://api.github.com/repos/philbooth/check-types.js/issues/54/events","html_url":"https://github.com/philbooth/check-types.js/issues/54","id":109482069,"number":54,"title":"err instanceof Error","user":{"login":"missinglink","id":738069,"avatar_url":"https://avatars.githubusercontent.com/u/738069?v=3","gravatar_id":"","url":"https://api.github.com/users/missinglink","html_url":"https://github.com/missinglink","followers_url":"https://api.github.com/users/missinglink/followers","following_url":"https://api.github.com/users/missinglink/following{/other_user}","gists_url":"https://api.github.com/users/missinglink/gists{/gist_id}","starred_url":"https://api.github.com/users/missinglink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missinglink/subscriptions","organizations_url":"https://api.github.com/users/missinglink/orgs","repos_url":"https://api.github.com/users/missinglink/repos","events_url":"https://api.github.com/users/missinglink/events{/privacy}","received_events_url":"https://api.github.com/users/missinglink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-02T12:32:50Z","updated_at":"2015-10-02T12:54:16Z","closed_at":null,"body":"hey @philbooth I am trying to `check.error()` on a **FandangledError** object which *inherits* from `Error`, eg this: https://github.com/elastic/elasticsearch-js/blob/master/src/lib/errors.js\r\n\r\ninstead of `toString()` returning `'[object Error]'` it returns `'[object Object]'` however `err instanceof Error` returns `true`\r\n\r\nthoughts?"},"comment":{"url":"https://api.github.com/repos/philbooth/check-types.js/issues/comments/145013459","html_url":"https://github.com/philbooth/check-types.js/issues/54#issuecomment-145013459","issue_url":"https://api.github.com/repos/philbooth/check-types.js/issues/54","id":145013459,"user":{"login":"philbooth","id":64367,"avatar_url":"https://avatars.githubusercontent.com/u/64367?v=3","gravatar_id":"","url":"https://api.github.com/users/philbooth","html_url":"https://github.com/philbooth","followers_url":"https://api.github.com/users/philbooth/followers","following_url":"https://api.github.com/users/philbooth/following{/other_user}","gists_url":"https://api.github.com/users/philbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/philbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbooth/subscriptions","organizations_url":"https://api.github.com/users/philbooth/orgs","repos_url":"https://api.github.com/users/philbooth/repos","events_url":"https://api.github.com/users/philbooth/events{/privacy}","received_events_url":"https://api.github.com/users/philbooth/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T12:54:16Z","updated_at":"2015-10-02T12:54:16Z","body":"Hello mate. :)\r\n\r\nYep, I think the two tests should be `||`-combined. Feel free to PR, if not I'll do it over the weekend.\r\n\r\nAnd as it's a breaking change, I'll also use the major version bump to make [certain other interface changes](https://github.com/philbooth/check-types.js/issues/45) that have been requested elsewhere."}}