From 9b5aaae909eba526b40b28d6fd8ca7d0c99f785c Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 7 Mar 2017 16:58:33 +0000 Subject: [PATCH] android: fixed promise rejected with non-error warning --- lib/modules/database/reference.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/database/reference.js b/lib/modules/database/reference.js index 92bc4c04..ec4bb8e7 100644 --- a/lib/modules/database/reference.js +++ b/lib/modules/database/reference.js @@ -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); }); }