Skip to content

Commit

Permalink
db-synthesizer: explain what "does not look like a ChainDB" means (#1206
Browse files Browse the repository at this point in the history
)

Motivation is to make the failure less confusing. We might also want to
relax the `checkIsDB` predicate to be more lenient/less overeager in the
future.
  • Loading branch information
amesgen authored Aug 8, 2024
2 parents 5749666 + cb05cb2 commit f2fa67c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,6 @@ preOpenChainDB mode db =
OpenCreateForce | isChainDB ->
removePathForcibly db >> create
_ ->
fail $ loc ++ " is non-empty and does not look like a ChainDB. Aborting."
fail $ loc ++ " is non-empty and does not look like a ChainDB"
<> " (i.e. its entries are not exactly 'immutable'/'ledger'/'volatile')."
<> " Aborting."

0 comments on commit f2fa67c

Please sign in to comment.