mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Fix script path for warnings
This commit is contained in:
parent
e98eb0c113
commit
54d44f7076
1 changed files with 3 additions and 2 deletions
|
@ -726,9 +726,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
String source(err[5]);
|
||||
bool source_is_project_file = source.begins_with("res://");
|
||||
if (source_is_project_file)
|
||||
source = source.get_file();
|
||||
txt = source.get_file() + ":" + String(err[6]);
|
||||
else
|
||||
txt = source + ":" + String(err[6]);
|
||||
|
||||
txt = source + ":" + String(err[6]);
|
||||
String method = err[4];
|
||||
if (method.length() > 0)
|
||||
txt += " @ " + method + "()";
|
||||
|
|
Loading…
Add table
Reference in a new issue