Skip to content

Commit 8b315da

Browse files
committed
Make failwith messages more descriptive
1 parent fb7c6d8 commit 8b315da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib/mina_lib/mina_lib.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,9 @@ module Hardfork_config = struct
28862886
let directory_name = parent_directory ^/ "staking_ledger" in
28872887
match source_ledgers.staking_ledger with
28882888
| `Genesis _l ->
2889-
failwith "TODO!"
2889+
failwith
2890+
"Daemon has genesis staking ledger - hard fork dump currently \
2891+
unsupported"
28902892
| `Root l ->
28912893
let root =
28922894
Ledger.Root.create_checkpoint_with_directory l ~directory_name
@@ -2898,7 +2900,9 @@ module Hardfork_config = struct
28982900
let directory_name = parent_directory ^/ "next_epoch_ledger" in
28992901
match source_ledgers.next_epoch_ledger with
29002902
| `Genesis _l ->
2901-
failwith "TODO!"
2903+
failwith
2904+
"Daemon has genesis epoch ledger - hard fork dump currently \
2905+
unsupported"
29022906
| `Root l ->
29032907
let root =
29042908
Ledger.Root.create_checkpoint_with_directory l ~directory_name

0 commit comments

Comments
 (0)