[database][js] Reject promise instead of resolving an error object when ref.once('value') fails
This commit is contained in:
parent
a82afe92d6
commit
aa2511cbd3
|
@ -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