scrpiting: httpGet: provide error code

This commit is contained in:
jean-emmanuel 2024-12-02 08:34:35 +01:00
parent 20d29f8111
commit 51f2e64968

View file

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