Better error message when genesis is missing

This commit is contained in:
Łukasz Magiera 2019-07-25 01:32:44 +02:00
parent 16c1dc5268
commit 99acdbade0

View File

@ -191,7 +191,7 @@ func ChainStore(lc fx.Lifecycle, bs blockstore.Blockstore, ds datastore.Batching
func ErrorGenesis() Genesis {
return func() (header *chain.BlockHeader, e error) {
return nil, xerrors.New("No genesis block provided")
return nil, xerrors.New("No genesis block provided, provide the file with 'lotus daemon --genesis=[genesis file]'")
}
}