aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-01 04:44:24 +0200
committerKim Alvefur <zash@zash.se>2018-07-01 04:44:24 +0200
commit1de991a04a396b150b711fac52a6bc7d967a47a6 (patch)
tree2cd480fed183e18288e3434421f5ed9400e1f123
parent6d639a75d4c8db2ddd7e56367e737a063914f53f (diff)
downloadprosody-1de991a04a396b150b711fac52a6bc7d967a47a6.tar.gz
prosody-1de991a04a396b150b711fac52a6bc7d967a47a6.zip
util.pubsub: Return error code known by pubsub.lib if persistent creation fails
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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