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

Commit

Permalink
Merge pull request #4378 from EOSIO/link-auth-err-message
Browse files Browse the repository at this point in the history
Show the linked action inside deleting linked authority error message
  • Loading branch information
b1bart authored Jul 2, 2018
2 parents 679addb + 5c477a1 commit 21e50ea
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 21e50ea

Please sign in to comment.