summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-02 13:47:24 +0200
committerGitHub <noreply@github.com>2018-10-02 13:47:24 +0200
commit4e3db841af115d3b3a71fb12f1f45b0343ca4512 (patch)
tree61a09d42040f7e23991660bd0c2ef8a871a9ceff /editor
parent0cc3aff8edd5f63436814a6b2219044d94eb8201 (diff)
parent54d44f707610304c7a5c3529c22cfa4a85bfa053 (diff)
Merge pull request #22617 from Chaosus/fix_path
Fix script path for warnings
Diffstat (limited to 'editor')
-rw-r--r--editor/script_editor_debugger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index 2d4af6c63d..eb72d0aa6e 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -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 + "()";