Skip to content

Commit

Permalink
Improved messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 2, 2024
1 parent 3661a73 commit 208ccfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion node
Submodule node updated 3 files
+2 −1 go.mod
+4 −0 go.sum
+2 −2 makefile
5 changes: 1 addition & 4 deletions src/apps/chifra/internal/init/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,12 @@ func (opts *InitOptions) validateInit() error {
if history.FromHistoryBool(historyFile, "init") && !opts.All {
msg := `You previously called chifra init with the --all option.
You must continue to do so or remove both the full index and the history file. Paths
to these items are listed here:
You must continue to do so or remove the history file here:
{{.IndexFolder}}
{{.HistoryFile}}
This is a dangerous operation, please don't say we didn't warn you.
`
msg = strings.ReplaceAll(msg, "{{.IndexFolder}}", config.PathToIndex(chain))
msg = strings.ReplaceAll(msg, "{{.HistoryFile}}", historyFile)
return validate.Usage(msg)
}
Expand Down

0 comments on commit 208ccfc

Please sign in to comment.