aboutsummaryrefslogtreecommitdiffstats
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
commit86117bb2a23c3deaa2e733f390bb6ebdb49cb33b (patch)
treece3489540997a2fff6e83e05d5ecaa73398b4ce9
parentcd8f883199e5f140d1152f0c8da8aad347eadf4f (diff)
downloadprosody-86117bb2a23c3deaa2e733f390bb6ebdb49cb33b.tar.gz
prosody-86117bb2a23c3deaa2e733f390bb6ebdb49cb33b.zip
util.serialization: Use '=' prefix for chunk source description
Like in bd5e4485a245
-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