diff options
Diffstat (limited to 'src/mod_pubsub/node_dag.erl')
| -rw-r--r-- | src/mod_pubsub/node_dag.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mod_pubsub/node_dag.erl b/src/mod_pubsub/node_dag.erl index b70169460..439be2205 100644 --- a/src/mod_pubsub/node_dag.erl +++ b/src/mod_pubsub/node_dag.erl @@ -53,8 +53,8 @@ get_item/2, set_item/1, get_item_name/3, - node_to_path/1, - path_to_node/1]). + node_to_path/1, + path_to_node/1]). init(Host, ServerHost, Opts) -> @@ -96,7 +96,7 @@ publish_item(NodeID, Publisher, Model, MaxItems, ItemID, Payload) -> #pubsub_node{options = Options} -> case find_opt(node_type, Options) of collection -> - {error, ?ERR_EXTENDED(?ERR_NOT_ALLOWED, "publish")}; + {error, mod_pubsub:extended_error('not-allowed', "publish")}; _ -> node_hometree:publish_item(NodeID, Publisher, Model, MaxItems, ItemID, Payload) @@ -181,4 +181,3 @@ node_to_path(Node) -> path_to_node(Path) -> node_hometree:path_to_node(Path). - |
