Software /
code /
prosody
Diff
tests/test.lua @ 7072:3121054e665f
tests: Correct mistake from latst merge, use the same variable name in all 3 places where it matters
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Jan 2016 03:25:16 +0100 |
parent | 7062:90e8bbfbaabd |
child | 7073:31fa6770019c |
line wrap: on
line diff
--- a/tests/test.lua Sun Jan 10 00:17:54 2016 +0100 +++ b/tests/test.lua Sun Jan 10 03:25:16 2016 +0100 @@ -145,10 +145,10 @@ unit._M = unit; end setfenv(chunk, unit); - local success, err = pcall(chunk); + local success, ret = pcall(chunk); _fakeG.module, _fakeG._M = oldmodule, old_M; if not success then - print("WARNING: ", "Failed to initialise module: "..unitname, err); + print("WARNING: ", "Failed to initialise module: "..unitname, ret); return; end