Changeset

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
parents 6631:45222bfb206f
children 6645:4f934cf03bc9
files util/datamanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)