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
@ -377,11 +377,6 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int
|
||||
}
|
||||
|
||||
} break;
|
||||
/*case Variant::RESOURCE: {
|
||||
|
||||
ERR_EXPLAIN("Can't marshallize resources");
|
||||
ERR_FAIL_V(ERR_INVALID_DATA); //no, i'm sorry, no go
|
||||
} break;*/
|
||||
case Variant::_RID: {
|
||||
|
||||
r_variant = RID();
|
||||
@ -1066,11 +1061,6 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
|
||||
r_len += 4 * 4;
|
||||
|
||||
} break;
|
||||
/*case Variant::RESOURCE: {
|
||||
|
||||
ERR_EXPLAIN("Can't marshallize resources");
|
||||
ERR_FAIL_V(ERR_INVALID_DATA); //no, i'm sorry, no go
|
||||
} break;*/
|
||||
case Variant::_RID: {
|
||||
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user