Changeset

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
parents 8955:ca6a09cf2829
children 8957:21ae6cb20dcf
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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