Improve error when update_doc() fails
This commit is contained in:
1 parent
4d1f26e1fd
commit
c3b4c823da
1 file changed
+1
-1
@@ -3733,7 +3733,7 @@ bool ScriptEditor::_help_tab_goto(const String &p_name, const String &p_desc) {
|
||||
}
|
||||
|
||||
void ScriptEditor::update_doc(const String &p_name) {
|
||||
ERR_FAIL_COND(!EditorHelp::has_doc(p_name));
|
||||
ERR_FAIL_COND_MSG(!EditorHelp::has_doc(p_name), vformat("Can't update documentation for \"%s\".", p_name));
|
||||
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
EditorHelp *eh = Object::cast_to<EditorHelp>(tab_container->get_tab_control(i));
|
||||
|
||||
Reference in new issue
Block a user