From bcc4dfe745607779ba9a8a0e733460a98f24cfee Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Mon, 17 Oct 2022 14:12:58 +0000 Subject: [PATCH] base: add url to client error message --- base/media/client.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/base/media/client.mjs b/base/media/client.mjs index edbbaa0..dbaa302 100644 --- a/base/media/client.mjs +++ b/base/media/client.mjs @@ -77,6 +77,7 @@ export default class Client { } if (!options.getRaw && output.status && typeof(output.status) === 'number') { let err = new Error(`Request failed [${output.status}]: ${output.message}`) + err.url = path err.body = output return reject(err) }