mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	HTTPRequest: include faulty URLs in error texts
This commit is contained in:
		
							parent
							
								
									4f6eb3610f
								
							
						
					
					
						commit
						5c7c7dbcb5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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("/"); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 merumelu
						merumelu