Merge pull request #867 from simonbengtsson/database-error-rejection
[database][js] Reject promise instead of resolving an error object
This commit is contained in:
commit
44e005b58d
|
@ -289,7 +289,7 @@ export default class Reference extends ReferenceBase {
|
|||
})
|
||||
.catch(error => {
|
||||
if (isFunction(cancelOrContext)) return cancelOrContext(error);
|
||||
return error;
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue