summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/unknown-cast-variable.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/unknown-cast-variable.lua b/script/core/diagnostics/unknown-cast-variable.lua
index 57377f6e..3f082a50 100644
--- a/script/core/diagnostics/unknown-cast-variable.lua
+++ b/script/core/diagnostics/unknown-cast-variable.lua
@@ -24,7 +24,7 @@ return function (uri, callback)
callback {
start = doc.loc.start,
finish = doc.loc.finish,
- message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc[1])
+ message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc.loc[1])
}
end
end