mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", "modules/gdnative", "modules/gdscript" directories.
This commit is contained in:
parent
22b42c3315
commit
6ab118c464
24 changed files with 112 additions and 306 deletions
|
@ -68,21 +68,18 @@ Error HTTPClient::connect_to_host(const String &p_host, int p_port, bool p_ssl,
|
|||
|
||||
void HTTPClient::set_connection(const Ref<StreamPeer> &p_connection) {
|
||||
|
||||
ERR_EXPLAIN("Accessing an HTTPClient's StreamPeer is not supported for the HTML5 platform");
|
||||
ERR_FAIL();
|
||||
ERR_FAIL_MSG("Accessing an HTTPClient's StreamPeer is not supported for the HTML5 platform.");
|
||||
}
|
||||
|
||||
Ref<StreamPeer> HTTPClient::get_connection() const {
|
||||
|
||||
ERR_EXPLAIN("Accessing an HTTPClient's StreamPeer is not supported for the HTML5 platform");
|
||||
ERR_FAIL_V(REF());
|
||||
ERR_FAIL_V_MSG(REF(), "Accessing an HTTPClient's StreamPeer is not supported for the HTML5 platform.");
|
||||
}
|
||||
|
||||
Error HTTPClient::prepare_request(Method p_method, const String &p_url, const Vector<String> &p_headers) {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_method, METHOD_MAX, ERR_INVALID_PARAMETER);
|
||||
ERR_EXPLAIN("HTTP methods TRACE and CONNECT are not supported for the HTML5 platform");
|
||||
ERR_FAIL_COND_V(p_method == METHOD_TRACE || p_method == METHOD_CONNECT, ERR_UNAVAILABLE);
|
||||
ERR_FAIL_COND_V_MSG(p_method == METHOD_TRACE || p_method == METHOD_CONNECT, ERR_UNAVAILABLE, "HTTP methods TRACE and CONNECT are not supported for the HTML5 platform.");
|
||||
ERR_FAIL_COND_V(status != STATUS_CONNECTED, ERR_INVALID_PARAMETER);
|
||||
ERR_FAIL_COND_V(host.empty(), ERR_UNCONFIGURED);
|
||||
ERR_FAIL_COND_V(port < 0, ERR_UNCONFIGURED);
|
||||
|
@ -201,8 +198,7 @@ PoolByteArray HTTPClient::read_response_body_chunk() {
|
|||
|
||||
void HTTPClient::set_blocking_mode(bool p_enable) {
|
||||
|
||||
ERR_EXPLAIN("HTTPClient blocking mode is not supported for the HTML5 platform");
|
||||
ERR_FAIL_COND(p_enable);
|
||||
ERR_FAIL_COND_MSG(p_enable, "HTTPClient blocking mode is not supported for the HTML5 platform.");
|
||||
}
|
||||
|
||||
bool HTTPClient::is_blocking_mode_enabled() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue