Skip to content

Commit

Permalink
More detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaJane committed Jun 22, 2023
1 parent 7bb478a commit 7c89aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/cc-cli/src/commands/withdrawUnbonded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ async function withdrawUnbondedAction(options: OptionValues) {
const controllerStatus = await getStatus(controller.address, api);

if (!controllerStatus.stash) {
console.error(`Cannot withdraw, ${controller.address} is not staked`);
console.error(
`Could not find stash account associated with the provided controller address: ${controller.address}. Please ensure check the address is actually a controller.`
);
process.exit(1);
}

Expand Down

0 comments on commit 7c89aa5

Please sign in to comment.