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:
Braden Bodily 2019-08-14 20:57:49 -06:00 committed by Rémi Verschelde
parent 40640a01dc
commit 71d71d55b5
76 changed files with 297 additions and 708 deletions

View file

@ -2795,8 +2795,7 @@ void EditorNode::select_editor_by_name(const String &p_name) {
}
}
ERR_EXPLAIN("The editor name '" + p_name + "' was not found.");
ERR_FAIL();
ERR_FAIL_MSG("The editor name '" + p_name + "' was not found.");
}
void EditorNode::add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) {
@ -4797,8 +4796,7 @@ void EditorNode::remove_control_from_dock(Control *p_control) {
}
}
ERR_EXPLAIN("Control was not in dock");
ERR_FAIL_COND(!dock);
ERR_FAIL_COND_MSG(!dock, "Control was not in dock.");
dock->remove_child(p_control);
_update_dock_slots_visibility();