[database][js] Reject promise instead of resolving an error object when ref.once('value') fails

This commit is contained in:
Simon Bengtsson 2018-03-08 14:10:41 +01:00
parent a82afe92d6
commit aa2511cbd3
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;
});
}