Skip to content

Commit f2fa67c

Browse files
authored
db-synthesizer: explain what "does not look like a ChainDB" means (#1206)
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.
2 parents 5749666 + cb05cb2 commit f2fa67c

File tree

1 file changed

+3
-1
lines changed
  • ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBSynthesizer

1 file changed

+3
-1
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBSynthesizer/Run.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,6 @@ preOpenChainDB mode db =
183183
OpenCreateForce | isChainDB ->
184184
removePathForcibly db >> create
185185
_ ->
186-
fail $ loc ++ " is non-empty and does not look like a ChainDB. Aborting."
186+
fail $ loc ++ " is non-empty and does not look like a ChainDB"
187+
<> " (i.e. its entries are not exactly 'immutable'/'ledger'/'volatile')."
188+
<> " Aborting."

0 commit comments

Comments
 (0)