feature: more descriptive error message

This commit is contained in:
AJ ONeal 2021-10-11 17:53:02 -06:00
parent 38361ffe1e
commit 1c941cb104
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}