0chain / 0chain/zboxcli

error message for `unstake` is not user friendly

Open Beginner friendly
#584 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
28
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Currently during stake pool unlock, we show this error
![2024-01-25 17 03 30](https://github.com/0chain/zboxcli/assets/9148277/9cf1a29c-ad2c-4f97-ae4b-66c0d0ead570)

it should be more like:

sp-unlock not allowed until all active allocations are cancelled by respective owners. So that users know the reason for the error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the error message shown during stake pool unlock in the CLI codebase, likely in a command handling file like `cmd/unstake.go` or similar. Find where the current generic error is generated and update it to the more descriptive text provided. Test the change by running the unstake command in a scenario with active allocations to verify the new message appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.