aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index 3fbf1b45..c449625a 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -509,7 +509,7 @@ function service:publish(node, actor, id, item, required_config)
return false, "precondition-not-met";
end
if not self.config.itemcheck(item) then
- return nil, "internal-server-error";
+ return nil, "invalid-item";
end
local node_data = self.data[node];
local ok = node_data:set(id, item);