aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry2016-05-25 22:57:41 +0200
committerRémi Verschelde2016-06-04 22:20:02 +0200
commit211a6d01bc11d55e8409e554c0c1b6edfd9ce9e1 (patch)
tree229365f6844dfa41c027ebc9eb2e59bd5f46a0aa /tools/editor/script_editor_debugger.cpp
parent280899ee434002e32ba3cc5151b30ef906777b5d (diff)
downloadgodot-211a6d01bc11d55e8409e554c0c1b6edfd9ce9e1.tar.gz
godot-211a6d01bc11d55e8409e554c0c1b6edfd9ce9e1.tar.zst
godot-211a6d01bc11d55e8409e554c0c1b6edfd9ce9e1.zip
Debugger: show error message if description is not available
(cherry picked from commit ea9cde884279a665c89d89915559ae3ddc5f8cc1)
Diffstat (limited to '')
-rw-r--r--tools/editor/script_editor_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp
index 90d162c70..07e516dda 100644
--- a/tools/editor/script_editor_debugger.cpp
+++ b/tools/editor/script_editor_debugger.cpp
@@ -397,7 +397,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="Type:"+String(warning?"Warning":"Error");
tooltip+="\nDescription: "+String(err[8]);