diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-01 04:44:24 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-01 04:44:24 +0200 |
commit | 762e7dc70b75f188aa32187a37193ab684ac2e45 (patch) | |
tree | 2cd480fed183e18288e3434421f5ed9400e1f123 /util | |
parent | c4fdeeed1392d53e6d0daafdc672a56b0332c267 (diff) | |
download | prosody-762e7dc70b75f188aa32187a37193ab684ac2e45.tar.gz prosody-762e7dc70b75f188aa32187a37193ab684ac2e45.zip |
util.pubsub: Return error code known by pubsub.lib if persistent creation fails
Diffstat (limited to 'util')
-rw-r--r-- | util/pubsub.lua | 2 |
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 |