mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
This commit is contained in:
		
							parent
							
								
									40640a01dc
								
							
						
					
					
						commit
						71d71d55b5
					
				
					 76 changed files with 297 additions and 708 deletions
				
			
		|  | @ -288,8 +288,7 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) { | |||
| 	if (!err) { | ||||
| 		return flags.st_mtime; | ||||
| 	} else { | ||||
| 		ERR_EXPLAIN("Failed to get modified time for: " + p_file); | ||||
| 		ERR_FAIL_V(0); | ||||
| 		ERR_FAIL_V_MSG(0, "Failed to get modified time for: " + p_file + "."); | ||||
| 	}; | ||||
| } | ||||
| 
 | ||||
|  | @ -302,8 +301,7 @@ uint32_t FileAccessUnix::_get_unix_permissions(const String &p_file) { | |||
| 	if (!err) { | ||||
| 		return flags.st_mode & 0x7FF; //only permissions
 | ||||
| 	} else { | ||||
| 		ERR_EXPLAIN("Failed to get unix permissions for: " + p_file); | ||||
| 		ERR_FAIL_V(0); | ||||
| 		ERR_FAIL_V_MSG(0, "Failed to get unix permissions for: " + p_file + "."); | ||||
| 	}; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Braden Bodily
						Braden Bodily