diff options
author | Leon Krause <Lk@Leonkrause.com> | 2018-08-21 03:34:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 03:34:21 +0200 |
commit | e9cb03f33eb5e17ce3638c033299a4f919dab194 (patch) | |
tree | a6faf601420822bec836cfa9e52a11a8a7ae8248 /platform/javascript/http_request.js | |
parent | 4ea3e4f551f3f364bd77242a1bc541e9b018f62e (diff) | |
parent | 71c03883b50b98441ce457fb3cec1701a2e11842 (diff) |
Merge pull request #20922 from kripken/err
HTML5: use console.warn instead of Module.printErr
Diffstat (limited to 'platform/javascript/http_request.js')
-rw-r--r-- | platform/javascript/http_request.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/javascript/http_request.js b/platform/javascript/http_request.js index c420052e54..ee1c06c623 100644 --- a/platform/javascript/http_request.js +++ b/platform/javascript/http_request.js @@ -82,7 +82,7 @@ var GodotHTTPRequest = { godot_xhr_send_string: function(xhrId, strPtr) { if (!strPtr) { - Module.printErr("Failed to send string per XHR: null pointer"); + console.warn("Failed to send string per XHR: null pointer"); return; } GodotHTTPRequest.requests[xhrId].send(UTF8ToString(strPtr)); @@ -90,11 +90,11 @@ var GodotHTTPRequest = { godot_xhr_send_data: function(xhrId, ptr, len) { if (!ptr) { - Module.printErr("Failed to send data per XHR: null pointer"); + console.warn("Failed to send data per XHR: null pointer"); return; } if (len < 0) { - Module.printErr("Failed to send data per XHR: buffer length less than 0"); + console.warn("Failed to send data per XHR: buffer length less than 0"); return; } GodotHTTPRequest.requests[xhrId].send(HEAPU8.subarray(ptr, ptr + len)); |