diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-05-29 18:32:35 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-05-29 18:32:35 +0200 |
commit | 5bbb67fcacff4df5d3c117a2bd81778d3ba0a53f (patch) | |
tree | 1e98614c148a028f01e022ec5934c86769dec90a /tools | |
parent | 6a7530c71882967b90946ef91a2f546dd4a380df (diff) | |
parent | ea9cde884279a665c89d89915559ae3ddc5f8cc1 (diff) |
Merge pull request #4814 from neikeq/pr-issue-4805
Debugger: show error message if description is not available
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/script_editor_debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 7c7801a203..bd01e62158 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/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]); |