From 91dba55f7309307c83443fed8e7142a878209745 Mon Sep 17 00:00:00 2001 From: deishelon Date: Mon, 17 Dec 2018 21:53:56 +1300 Subject: [PATCH] Fixed error where promse .catch did not show the error message --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 54c4fe3..bd70eaa 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,7 @@ Verifier.prototype.verify = function(finalUrl){ resultInfo.errorMessage = errorMessage //console.log(resultInfo); - reject(Error(resultInfo)); + reject(resultInfo); } } diff --git a/package.json b/package.json index 7148005..8a4f0e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "google-play-billing-validator", - "version": "2.0.0", + "version": "2.0.1", "description": "Server side for (Node.js) solution to validate Google Play Purchases and Subscriptions", "main": "index.js", "scripts": {