Skip to content

Commit

Permalink
improve error msg when account is not controller
Browse files Browse the repository at this point in the history
  • Loading branch information
pLabarta committed Aug 1, 2023
1 parent 8085dd6 commit 6e5835e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/cc-cli/src/commands/unbond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ async function unbondAction(options: OptionValues) {

const controllerStatus = await getStatus(controllerAddress, api);
if (!controllerStatus.stash) {
console.error(`Cannot unbond, ${controllerAddress} is not staked`);
console.error(
`Cannot unbond, ${controllerAddress} is not a controller account`
);
process.exit(1);
}
const stashStatus = await getStatus(controllerStatus.stash, api);
Expand Down

0 comments on commit 6e5835e

Please sign in to comment.