From fced8dc3d926ef733775725225a437c2c1656a4f Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 31 Mar 2016 11:00:29 +0300 Subject: Replace some ?ERR_* macros with ?ERRT_* --- src/node_dag.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/node_dag.erl') diff --git a/src/node_dag.erl b/src/node_dag.erl index cbb8e18c6..09ee85f91 100644 --- a/src/node_dag.erl +++ b/src/node_dag.erl @@ -77,8 +77,9 @@ publish_item(Nidx, Publisher, Model, MaxItems, ItemId, Payload) -> #pubsub_node{options = Options} -> case find_opt(node_type, Options) of collection -> + Txt = <<"Publishing items to collection node is not allowed">>, {error, - ?ERR_EXTENDED((?ERR_NOT_ALLOWED), <<"publish">>)}; + ?ERR_EXTENDED(?ERRT_NOT_ALLOWED(?MYLANG, Txt), <<"publish">>)}; _ -> node_hometree:publish_item(Nidx, Publisher, Model, MaxItems, ItemId, Payload) -- cgit v1.2.3