cli icon indicating copy to clipboard operation
cli copied to clipboard

`serve`: refactor the `Blockchain failed to start.` error message

Open lumtis opened this issue 3 years ago • 3 comments

When the blockchain fails to start, because of any reason (wrong gentx, broken logic, incorrect staking token), the following message appear (when -v is not used):

Blockchain failed to start.
If the new code is no longer compatible with the saved state, you can reset the database by launching: starport chain serve --reset-once

This message may be a bit ambiguous because most of the time people starting development with Starport may think the statement If the new code is no longer compatible with the saved state is true and therefore try to debug the wrong problem

We may need to show the underlying error even when -v is not used or give indication to the user to run the command with -v

lumtis avatar Nov 12 '21 11:11 lumtis

I was in this exact situation... non-verbose logging output made me search for a solution to the wrong problem

Jack-Above avatar Feb 16 '22 09:02 Jack-Above

Did you figure it out yet? Just wondering

Starblue0 avatar May 29 '22 17:05 Starblue0

+1 I'd love having been reminded of the existence of the -v switch in the "Blockchain failed to start." error message.

blarsy avatar Sep 07 '22 08:09 blarsy