Skip to content

Commit

Permalink
Add "celolatest" to syncmode error message (ethereum#79)
Browse files Browse the repository at this point in the history
Add "celolatest" sync mode as a potential sync mode when an incorrect
sync mode is passed to geth.
  • Loading branch information
ashishb committed Oct 26, 2018
1 parent 592315a commit 07e0ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (mode *SyncMode) UnmarshalText(text []byte) error {
case "celolatest":
*mode = CeloLatestSync
default:
return fmt.Errorf(`unknown sync mode %q, want "full", "fast" or "light"`, text)
return fmt.Errorf(`unknown sync mode %q, want "full", "fast", "light", or "celolatest"`, text)
}
return nil
}

0 comments on commit 07e0ed5

Please sign in to comment.