{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/522","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/522/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/522/events","html_url":"https://github.com/tgriesser/bookshelf/issues/522","id":49174735,"number":522,"title":"Updates that affects no rows should throw a NotFound error","user":{"login":"mgartner","id":1128750,"avatar_url":"https://avatars.githubusercontent.com/u/1128750?v=3","gravatar_id":"","url":"https://api.github.com/users/mgartner","html_url":"https://github.com/mgartner","followers_url":"https://api.github.com/users/mgartner/followers","following_url":"https://api.github.com/users/mgartner/following{/other_user}","gists_url":"https://api.github.com/users/mgartner/gists{/gist_id}","starred_url":"https://api.github.com/users/mgartner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgartner/subscriptions","organizations_url":"https://api.github.com/users/mgartner/orgs","repos_url":"https://api.github.com/users/mgartner/repos","events_url":"https://api.github.com/users/mgartner/events{/privacy}","received_events_url":"https://api.github.com/users/mgartner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/change","name":"change","color":"009800"},{"url":"https://api.github.com/repos/tgriesser/bookshelf/labels/feature%20request","name":"feature request","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"bendrucker","id":808808,"avatar_url":"https://avatars.githubusercontent.com/u/808808?v=3","gravatar_id":"","url":"https://api.github.com/users/bendrucker","html_url":"https://github.com/bendrucker","followers_url":"https://api.github.com/users/bendrucker/followers","following_url":"https://api.github.com/users/bendrucker/following{/other_user}","gists_url":"https://api.github.com/users/bendrucker/gists{/gist_id}","starred_url":"https://api.github.com/users/bendrucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendrucker/subscriptions","organizations_url":"https://api.github.com/users/bendrucker/orgs","repos_url":"https://api.github.com/users/bendrucker/repos","events_url":"https://api.github.com/users/bendrucker/events{/privacy}","received_events_url":"https://api.github.com/users/bendrucker/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2014-11-18T02:59:23Z","updated_at":"2015-10-29T16:43:43Z","closed_at":"2014-12-20T16:15:13Z","body":"When I do something like this:\r\n\r\n```node\r\nnew User({ id: 1234 })\r\n.save({ active: false }, { patch: true });\r\n```\r\n\r\nAnd there is no user with the id `1234`, a `notFound` error should be throw, instead of a generic one: https://github.com/tgriesser/bookshelf/blob/03cc62e02eddc2d5253ed549704b43f54dab8148/lib/model.js#L223"},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/152243797","html_url":"https://github.com/tgriesser/bookshelf/issues/522#issuecomment-152243797","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/522","id":152243797,"user":{"login":"tkrotoff","id":643434,"avatar_url":"https://avatars.githubusercontent.com/u/643434?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrotoff","html_url":"https://github.com/tkrotoff","followers_url":"https://api.github.com/users/tkrotoff/followers","following_url":"https://api.github.com/users/tkrotoff/following{/other_user}","gists_url":"https://api.github.com/users/tkrotoff/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrotoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrotoff/subscriptions","organizations_url":"https://api.github.com/users/tkrotoff/orgs","repos_url":"https://api.github.com/users/tkrotoff/repos","events_url":"https://api.github.com/users/tkrotoff/events{/privacy}","received_events_url":"https://api.github.com/users/tkrotoff/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T16:43:43Z","updated_at":"2015-10-29T16:43:43Z","body":"This issue has not been fixed: `NotFoundError` is still not thrown"}}