ncli_db: better error message on missing history

This commit is contained in:
Jacek Sieka 2022-11-16 10:12:50 +01:00
parent 64322a3d45
commit aac61165d5
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 3 additions and 1 deletions

View File

@ -536,7 +536,9 @@ proc cmdExportEra(conf: DbConf, cfg: RuntimeConfig) =
dag.withUpdatedState(tmpState[], eraBid) do:
withState(state):
group.finish(e2, forkyState.data).get()
do: raiseAssert "withUpdatedState failed"
do:
echo "Unable to load historical state - export requires fully indexed history node - see https://nimbus.guide/trusted-node-sync.html#recreate-historical-state-access-indices"
quit 1
era += 1