Diff

util/pubsub.lua @ 8956:82f92af4b0f3

util.pubsub: Return error code known by pubsub.lib if persistent creation fails
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jul 2018 04:44:24 +0200
parent 8955:ca6a09cf2829
child 9031:d1a4b1b78695
line wrap: on
line diff
--- a/util/pubsub.lua	Sun Jul 01 04:42:41 2018 +0200
+++ b/util/pubsub.lua	Sun Jul 01 04:44:24 2018 +0200
@@ -293,7 +293,7 @@
 		local ok, err = save_node_to_store(self, self.nodes[node]);
 		if not ok then
 			self.nodes[node] = nil;
-			return ok, err;
+			return ok, "internal-server-error";
 		end
 	end