diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-31 17:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-31 17:24:55 +0200 |
commit | c28b9af210d843607e015386a6e5d8fcc0ceb734 (patch) | |
tree | f6b6049f930b0cd1cc1876bb6a35ef31007be088 | |
parent | 4f6eb3610f70b2a73a19dd8b92fb03c4739ef25b (diff) | |
parent | 5c7c7dbcb5c34d62cba642d8175eeb14d77ebb13 (diff) |
Merge pull request #31827 from merumelu/httprequest-errors
HTTPRequest: include faulty URLs in error texts
-rw-r--r-- | scene/main/http_request.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index e21e47f8a8..6c922adbd2 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -60,10 +60,10 @@ Error HTTPRequest::_parse_url(const String &p_url) { use_ssl = true; port = 443; } else { - ERR_FAIL_V_MSG(ERR_INVALID_PARAMETER, "Malformed URL."); + ERR_FAIL_V_MSG(ERR_INVALID_PARAMETER, "Malformed URL: " + url + "."); } - ERR_FAIL_COND_V_MSG(url.length() < 1, ERR_INVALID_PARAMETER, "URL too short."); + ERR_FAIL_COND_V_MSG(url.length() < 1, ERR_INVALID_PARAMETER, "URL too short: " + url + "."); int slash_pos = url.find("/"); |