Skip to content

Commit ea81e67

Browse files
committed
Error but don't terminate for stage 1,2 mismatch
1 parent b8e53e3 commit ea81e67

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cardano-db-sync/src/Cardano/DbSync.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ runDbSync metricsSetters knownMigrations iomgr trce params syncNodeConfigFromFil
8888
whenJust mErrors $ \(unknown, stage4orNewStage3) ->
8989
if stage4orNewStage3
9090
then logWarning trce $ Db.renderMigrationValidateError unknown
91-
else do
92-
let msg = Db.renderMigrationValidateError unknown
93-
logError trce msg
94-
throwIO unknown
91+
else logError trce $ Db.renderMigrationValidateError unknown
9592

9693
logInfo trce "Schema migration files validated"
9794

0 commit comments

Comments
 (0)