aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/init.lua b/io/init.lua
index 8c3701e..7c312f4 100644
--- a/io/init.lua
+++ b/io/init.lua
@@ -20,7 +20,7 @@ end
function nerv.ChunkFile:read_chunk(id, global_conf)
local metadata = self.metadata[id]
if metadata == nil then
- nerv_error("chunk with id %s does not exist", id)
+ nerv.error("chunk with id %s does not exist", id)
end
local chunk_type = assert(loadstring("return " .. metadata.type))()
local chunk = chunk_type(id, global_conf)