You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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:
committed by
Rémi Verschelde
parent
40640a01dc
commit
71d71d55b5
@@ -204,10 +204,8 @@ PoolAllocator::ID PoolAllocator::alloc(int p_size) {
|
||||
/* Then search again */
|
||||
|
||||
if (!find_hole(&new_entry_indices_pos, size_to_alloc)) {
|
||||
|
||||
mt_unlock();
|
||||
ERR_EXPLAIN("Memory can't be compacted further");
|
||||
ERR_FAIL_V(POOL_ALLOCATOR_INVALID_ID);
|
||||
ERR_FAIL_V_MSG(POOL_ALLOCATOR_INVALID_ID, "Memory can't be compacted further.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,8 +215,7 @@ PoolAllocator::ID PoolAllocator::alloc(int p_size) {
|
||||
|
||||
if (!found_free_entry) {
|
||||
mt_unlock();
|
||||
ERR_EXPLAIN("No free entry found in PoolAllocator");
|
||||
ERR_FAIL_V(POOL_ALLOCATOR_INVALID_ID);
|
||||
ERR_FAIL_V_MSG(POOL_ALLOCATOR_INVALID_ID, "No free entry found in PoolAllocator.");
|
||||
}
|
||||
|
||||
/* move all entry indices up, make room for this one */
|
||||
|
||||
Reference in New Issue
Block a user