Skip to content

Commit

Permalink
serve: add suggestions for logging on failure
Browse files Browse the repository at this point in the history
This commit adds a suggestion to the serve command to log the error.

Signed-off-by: Abhinav Srivastava <[email protected]>
  • Loading branch information
AbhinavMir committed Feb 5, 2024
1 parent 65d9d14 commit 244194f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ignite/services/chain/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ func (c *Chain) Serve(ctx context.Context, cacheStorage cache.Storage, options .
info := colors.Info(
"Blockchain failed to start.\n",
"If the new code is no longer compatible with the saved\n",
"state, you can reset the database by launching:",
"state, you can reset the database by launching:\n",
"For more verbose logging, add -v to the command.",
)
command := colors.SprintFunc(colors.White)("ignite chain serve --reset-once")

command := colors.SprintFunc(colors.White)("ignite chain serve --reset-once -v")
return errors.Errorf("cannot run %s\n\n%s\n%s", startErr.AppName, info, command)
}

Expand Down

0 comments on commit 244194f

Please sign in to comment.