{"action":"created","issue":{"url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/82","repository_url":"https://api.github.com/repos/colonyamerican/mock-knex","labels_url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/82/comments","events_url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/82/events","html_url":"https://github.com/colonyamerican/mock-knex/issues/82","id":343068052,"node_id":"MDU6SXNzdWUzNDMwNjgwNTI=","number":82,"title":"issues with error propagating","user":{"login":"jmarucha","id":8832340,"node_id":"MDQ6VXNlcjg4MzIzNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/8832340?v=4","gravatar_id":"","url":"https://api.github.com/users/jmarucha","html_url":"https://github.com/jmarucha","followers_url":"https://api.github.com/users/jmarucha/followers","following_url":"https://api.github.com/users/jmarucha/following{/other_user}","gists_url":"https://api.github.com/users/jmarucha/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarucha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarucha/subscriptions","organizations_url":"https://api.github.com/users/jmarucha/orgs","repos_url":"https://api.github.com/users/jmarucha/repos","events_url":"https://api.github.com/users/jmarucha/events{/privacy}","received_events_url":"https://api.github.com/users/jmarucha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T11:10:19Z","updated_at":"2018-09-27T01:04:51Z","closed_at":null,"author_association":"NONE","body":"I'm writing unit tests to handle possible DB errors:\r\n```\r\ntracker.on('query', (query) => {\r\n    expect(query.method).to.equal('del');\r\n    query.reject(Error('No Rows Deleted'));\r\n});\r\n```\r\nLater in code when I print `error.message` of the error propagating it is\r\n```\r\n   delete from \"resource_type\" where \"id\" = $1 - No Rows Deleted\r\n```\r\nwhich is `query.sql + ' - ' + error.message` of what I would expect.\r\nThis makes it impossible to test any error handling.\r\n\r\nUsing mock-knex 0.4.2, knex 0.14.4 and bookshelf 0.13.3"},"comment":{"url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/comments/424920656","html_url":"https://github.com/colonyamerican/mock-knex/issues/82#issuecomment-424920656","issue_url":"https://api.github.com/repos/colonyamerican/mock-knex/issues/82","id":424920656,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDkyMDY1Ng==","user":{"login":"jbrumwell","id":413363,"node_id":"MDQ6VXNlcjQxMzM2Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/413363?v=4","gravatar_id":"","url":"https://api.github.com/users/jbrumwell","html_url":"https://github.com/jbrumwell","followers_url":"https://api.github.com/users/jbrumwell/followers","following_url":"https://api.github.com/users/jbrumwell/following{/other_user}","gists_url":"https://api.github.com/users/jbrumwell/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrumwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrumwell/subscriptions","organizations_url":"https://api.github.com/users/jbrumwell/orgs","repos_url":"https://api.github.com/users/jbrumwell/repos","events_url":"https://api.github.com/users/jbrumwell/events{/privacy}","received_events_url":"https://api.github.com/users/jbrumwell/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T01:04:51Z","updated_at":"2018-09-27T01:04:51Z","author_association":"COLLABORATOR","body":"@jmarucha what is printed?"}}
{"actor":{"display_login":"jbrumwell"}}