Debugger: show error message if description is not available
(cherry picked from commit ea9cde8842
)
This commit is contained in:
parent
280899ee43
commit
211a6d01bc
|
@ -397,7 +397,7 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat
|
||||||
bool warning = err[9];
|
bool warning = err[9];
|
||||||
bool e;
|
bool e;
|
||||||
String time = String("%d:%02d:%02d:%04d").sprintf(vals,&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");
|
String tooltip="Type:"+String(warning?"Warning":"Error");
|
||||||
tooltip+="\nDescription: "+String(err[8]);
|
tooltip+="\nDescription: "+String(err[8]);
|
||||||
|
|
Loading…
Reference in New Issue