android: fixed promise rejected with non-error warning

This commit is contained in:
Salakar 2017-03-07 16:58:33 +00:00
parent 214928ba7f
commit 9b5aaae909
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ export default class Reference extends ReferenceBase {
.catch((error) => { .catch((error) => {
const firebaseError = this.db._toFirebaseError(error); const firebaseError = this.db._toFirebaseError(error);
if (isFunction(failureCallback)) failureCallback(firebaseError); if (isFunction(failureCallback)) failureCallback(firebaseError);
return Promise.reject(failureCallback); return Promise.reject(firebaseError);
}); });
} }