From 821c9b7de9c34e8a414b29e18cc5b65497b27995 Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Tue, 5 Jan 2021 04:46:06 +0100 Subject: [PATCH] Add logging full URL --- start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.js b/start.js index 0dd991b..50c5d25 100644 --- a/start.js +++ b/start.js @@ -11,7 +11,7 @@ const get = (url, options = {}) => new Promise((resolve, reject) => https const body = Buffer.concat(chunks).toString('utf-8'); if (res.statusCode < 200 || res.statusCode > 300) { return reject(Object.assign( - new Error(`Invalid status code: ${res.statusCode}`), + new Error(`Invalid status code '${res.statusCode}' for url '${url}'`), { res, body } )); }