From 1c941cb104ef2a27192a5a5a87e99559773d7df1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 11 Oct 2021 17:53:02 -0600 Subject: [PATCH] feature: more descriptive error message --- paypal-checkout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paypal-checkout.js b/paypal-checkout.js index 991d6b3..245e509 100644 --- a/paypal-checkout.js +++ b/paypal-checkout.js @@ -46,7 +46,7 @@ function sanitize(resp) { function must201or200(resp) { if (![200, 201].includes(resp.statusCode)) { - let err = new Error("bad response"); + let err = new Error("[@root/paypal-checkout] bad response"); err.response = resp; throw err; }