scrpiting: httpGet: provide error code
This commit is contained in:
parent
20d29f8111
commit
51f2e64968
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue