Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Show the linked action inside deleting linked authority error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrianto Lie committed Jun 28, 2018
1 parent 90fefdd commit 5c477a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/chain/eosio_contract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 5c477a1

Please sign in to comment.