0chain / 0chain/zboxcli

error message for `unstake` is not user friendly

Aperta Adatta ai principianti
#584 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
28
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
cli
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
70/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.