2
0
Эх сурвалжийг харах

Merge pull request #4814 from neikeq/pr-issue-4805

Debugger: show error message if description is not available
Rémi Verschelde 9 жил өмнө
parent
commit
5bbb67fcac

+ 1 - 1
tools/editor/script_editor_debugger.cpp

@@ -615,7 +615,7 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat
 		bool warning = err[9];
 		bool e;
 		String time = String("%d:%02d:%02d:%04d").sprintf(vals,&e);
-		String txt=time+" - "+String(err[8]);
+		String txt=time+" - "+(err[8].is_zero()?String(err[7]):String(err[8]));
 
 		String tooltip=TTR("Type:")+String(warning?TTR("Warning"):TTR("Error"));
 		tooltip+="\n"+TTR("Description:")+" "+String(err[8]);