android: fixed promise rejected with non-error warning
This commit is contained in:
parent
214928ba7f
commit
9b5aaae909
|
@ -133,7 +133,7 @@ export default class Reference extends ReferenceBase {
|
|||
.catch((error) => {
|
||||
const firebaseError = this.db._toFirebaseError(error);
|
||||
if (isFunction(failureCallback)) failureCallback(firebaseError);
|
||||
return Promise.reject(failureCallback);
|
||||
return Promise.reject(firebaseError);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue