summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-30 12:13:11 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-30 12:13:11 +0800
commitb2c1a69f74823d3481076e5def02e45a22eae4ef (patch)
treea3d0a18a50b87c7458cc7f42ac65e40bf1eeb8e3 /server
parent8e065707060a5f5902ed2552187a61dda51130f8 (diff)
downloadlua-language-server-b2c1a69f74823d3481076e5def02e45a22eae4ef.zip
改个提示
Diffstat (limited to 'server')
-rw-r--r--server/src/service.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 51fb756b..ad032655 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -250,7 +250,7 @@ function mt:compileAst(obj)
log.debug(message)
rpc:notify('window/showMessage', {
type = 3,
- message = lang.script('PARSER_CRASH', err:match 'grammar%.lua%:%d+%:(.+)'),
+ message = lang.script('PARSER_CRASH', err:match 'grammar%.lua%:%d+%:(.+)' or err),
})
end
end