Changeset

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
parents 7071:d9e620adfb64
children 7073:31fa6770019c
files tests/test.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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