summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index cb6a20a9..4a5509e7 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -333,7 +333,7 @@ function mt:compileVM(uri)
self:_clearGlobal(uri)
local clock = os.clock()
- local vm = buildVM(ast, self, uri)
+ local vm, err = buildVM(ast, self, uri)
if vm then
CachedVM[vm] = true
end
@@ -368,7 +368,7 @@ function mt:compileVM(uri)
log.debug(('Compile VM[%s] takes: %.3f sec'):format(uri, obj.vmCost))
end
if not obj.vm then
- return nil
+ error(err)
end
self:_compileChain(obj, compiled)