From 1de991a04a396b150b711fac52a6bc7d967a47a6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 1 Jul 2018 04:44:24 +0200 Subject: util.pubsub: Return error code known by pubsub.lib if persistent creation fails --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index 9a5470bf..74fa2be4 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -293,7 +293,7 @@ function service:create(node, actor, options) 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 -- cgit v1.2.3