aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-11 23:00:45 +0200
committerKim Alvefur <zash@zash.se>2018-10-11 23:00:45 +0200
commit8d941e5d0f4865f61a490a39e9abb7ff95ecdfe8 (patch)
treece3489540997a2fff6e83e05d5ecaa73398b4ce9 /util
parent09c19925cc2d968c7e337a95ce61640a7ae48b60 (diff)
downloadprosody-8d941e5d0f4865f61a490a39e9abb7ff95ecdfe8.tar.gz
prosody-8d941e5d0f4865f61a490a39e9abb7ff95ecdfe8.zip
util.serialization: Use '=' prefix for chunk source description
Like in bd5e4485a245
Diffstat (limited to 'util')
-rw-r--r--util/serialization.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/serialization.lua b/util/serialization.lua
index cc230238..f7f129b2 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -262,7 +262,7 @@ end
local function deserialize(str)
if type(str) ~= "string" then return nil; end
str = "return "..str;
- local f, err = envload(str, "@data", {});
+ local f, err = envload(str, "=serialized data", {});
if not f then return nil, err; end
local success, ret = pcall(f);
if not success then return nil, ret; end