Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(services): add suggestions for logging on serve failure (backport #3943) #3946

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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.",

Check warning on line 249 in ignite/services/chain/serve.go

View check run for this annotation

Codecov / codecov/patch

ignite/services/chain/serve.go#L248-L249

Added lines #L248 - L249 were not covered by tests
)
command := colors.SprintFunc(colors.White)("ignite chain serve --reset-once")

command := colors.SprintFunc(colors.White)("ignite chain serve --reset-once -v")

Check warning on line 251 in ignite/services/chain/serve.go

View check run for this annotation

Codecov / codecov/patch

ignite/services/chain/serve.go#L251

Added line #L251 was not covered by tests
return errors.Errorf("cannot run %s\n\n%s\n%s", startErr.AppName, info, command)
}

Expand Down
Loading