Diff

util/datamanager.lua @ 6644:6cb6855f60df

util.datamanager: Fix traceback due to %s in log message
author Kim Alvefur <zash@zash.se>
date Fri, 03 Apr 2015 12:10:30 +0200
parent 6575:bdaadf70a48f
child 6681:0217a04722c7
line wrap: on
line diff
--- a/util/datamanager.lua	Fri Apr 24 14:14:01 2015 +0200
+++ b/util/datamanager.lua	Fri Apr 03 12:10:30 2015 +0200
@@ -293,7 +293,7 @@
 
 	local mode, err = lfs.attributes(store_dir, "mode");
 	if not mode then
-		return function() log("debug", err or (store_dir .. " does not exist")) end
+		return function() log("debug", "%s", err or (store_dir .. " does not exist")) end
 	end
 	local next, state = lfs.dir(store_dir);
 	return function(state)