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
@@ -2161,10 +2161,8 @@ Error Expression::parse(const String &p_expression, const Vector<String> &p_inpu
|
||||
}
|
||||
|
||||
Variant Expression::execute(Array p_inputs, Object *p_base, bool p_show_error) {
|
||||
if (error_set) {
|
||||
ERR_EXPLAIN("There was previously a parse error: " + error_str);
|
||||
ERR_FAIL_V(Variant());
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V_MSG(error_set, Variant(), "There was previously a parse error: " + error_str + ".");
|
||||
|
||||
execution_error = false;
|
||||
Variant output;
|
||||
@@ -2173,10 +2171,7 @@ Variant Expression::execute(Array p_inputs, Object *p_base, bool p_show_error) {
|
||||
if (err) {
|
||||
execution_error = true;
|
||||
error_str = error_txt;
|
||||
if (p_show_error) {
|
||||
ERR_EXPLAIN(error_str);
|
||||
ERR_FAIL_V(Variant());
|
||||
}
|
||||
ERR_FAIL_COND_V_MSG(p_show_error, Variant(), error_str);
|
||||
}
|
||||
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user