{"action":"opened","issue":{"url":"https://api.github.com/repos/aaronpowell/db.js/issues/97","labels_url":"https://api.github.com/repos/aaronpowell/db.js/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/aaronpowell/db.js/issues/97/comments","events_url":"https://api.github.com/repos/aaronpowell/db.js/issues/97/events","html_url":"https://github.com/aaronpowell/db.js/issues/97","id":54375649,"number":97,"title":"rejection in add() function has two parameters","user":{"login":"MartijnR","id":627350,"avatar_url":"https://avatars.githubusercontent.com/u/627350?v=3","gravatar_id":"","url":"https://api.github.com/users/MartijnR","html_url":"https://github.com/MartijnR","followers_url":"https://api.github.com/users/MartijnR/followers","following_url":"https://api.github.com/users/MartijnR/following{/other_user}","gists_url":"https://api.github.com/users/MartijnR/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnR/subscriptions","organizations_url":"https://api.github.com/users/MartijnR/orgs","repos_url":"https://api.github.com/users/MartijnR/repos","events_url":"https://api.github.com/users/MartijnR/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-14T20:57:38Z","updated_at":"2015-01-14T20:57:38Z","closed_at":null,"body":"I'm wondering why add() and update() reject onerror with 2 parameters. Is there a reason for this?\r\n\r\nhttps://github.com/aaronpowell/db.js/blob/master/src/db.js#L111\r\n\r\nI would expect it to reject with:\r\n\r\n```reject(e)``` instead of ```reject(records, e)```\r\n\r\n"}}