Merge pull request #867 from simonbengtsson/database-error-rejection

[database][js] Reject promise instead of resolving an error object
This commit is contained in:
Michael Diarmid 2018-03-09 03:02:08 +00:00 committed by GitHub
commit 44e005b58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ export default class Reference extends ReferenceBase {
})
.catch(error => {
if (isFunction(cancelOrContext)) return cancelOrContext(error);
return error;
throw error;
});
}