Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 5ae3c01

Browse files
author
Igor Egorov
authored
Make genesis block error message more user friendly (#2007)
Signed-off-by: Igor Egorov <[email protected]>
1 parent 1b01b9b commit 5ae3c01

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

irohad/main/irohad.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,12 @@ int main(int argc, char *argv[]) {
215215
[](const auto &) { return true; },
216216
[](iroha::expected::Error<std::string> &) { return false; });
217217

218-
if (not blocks_exist) { // may happen only in case of bug or zero disk space
218+
if (not blocks_exist) {
219219
log->error(
220-
"You should have never seen this message. There are no blocks in the "
221-
"ledger. Unable to start. Try to specify --genesis_block and "
220+
"Unable to start the ledger. There are no blocks in the ledger. Please "
221+
"ensure that you are not trying to start the newer version of "
222+
"the ledger over incompatible version of the storage or there is "
223+
"enough disk space. Try to specify --genesis_block and "
222224
"--overwrite_ledger parameters at the same time.");
223225
return EXIT_FAILURE;
224226
}

0 commit comments

Comments
 (0)