From 51f2e649680d2776227d52a596939718c2266b1c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 2 Dec 2024 08:34:35 +0100 Subject: [PATCH] scrpiting: httpGet: provide error code --- src/client/widgets/scripts/script-vm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/scripts/script-vm.js b/src/client/widgets/scripts/script-vm.js index 0d2754cd..4a0eff55 100644 --- a/src/client/widgets/scripts/script-vm.js +++ b/src/client/widgets/scripts/script-vm.js @@ -305,7 +305,7 @@ class ScriptVm extends Vm { callback(xhr.responseText) } } - xhr.onerror = (e)=>err('httpGet error (' + url + '): ' + xhr.statusText) + xhr.onerror = (e)=>err(`httpGet error (${url}): ${xhr.status} ${xhr.statusText}`) xhr.send(null) }