Diff

mod_bookmarks/mod_bookmarks.lua @ 3487:e60933722248

mod_bookmarks: Use correct variable, fixes a traceback (thanks dan)
author Kim Alvefur <zash@zash.se>
date Thu, 14 Mar 2019 01:26:54 +0100
parent 3476:4ce945490a24
child 3543:11629f04ddd0
line wrap: on
line diff
--- a/mod_bookmarks/mod_bookmarks.lua	Wed Mar 13 22:47:14 2019 +0100
+++ b/mod_bookmarks/mod_bookmarks.lua	Thu Mar 14 01:26:54 2019 +0100
@@ -125,9 +125,9 @@
 	if node ~= "storage:bookmarks" then
 		return;
 	end
-	local ok, config = service:get_node_config(node, actor);
+	local ok, node_config = service:get_node_config(node, actor);
 	if not ok then
-		module:log("error", "Failed to get node config of %s: %s", node, config);
+		module:log("error", "Failed to get node config of %s: %s", node, node_config);
 		return;
 	end
 	local changed = false;
@@ -140,7 +140,7 @@
 	if not changed then
 		return;
 	end
-	local ok, err = service:set_node_config(node, actor, config);
+	local ok, err = service:set_node_config(node, actor, node_config);
 	if not ok then
 		module:log("error", "Failed to set node config of %s: %s", node, err);
 		return;