未验证 提交 21e50ea9 编写于 作者: W wanderingbort 提交者: GitHub

Merge pull request #4378 from EOSIO/link-auth-err-message

Show the linked action inside deleting linked authority error message
......@@ -282,7 +282,8 @@ void apply_eosio_deleteauth(apply_context& context) {
const auto& index = db.get_index<permission_link_index, by_permission_name>();
auto range = index.equal_range(boost::make_tuple(remove.account, remove.permission));
EOS_ASSERT(range.first == range.second, action_validate_exception,
"Cannot delete a linked authority. Unlink the authority first");
"Cannot delete a linked authority. Unlink the authority first. This authority is linked to ${code}::${type}.",
("code", string(range.first->code))("type", string(range.first->message_type)));
}
const auto& permission = authorization.get_permission({remove.account, remove.permission});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册