chore: use better exit code for "migration needed"
This commit is contained in:
parent
7529933ebe
commit
286407252a
@ -234,7 +234,7 @@ makeFoundation appSettings'@AppSettings{..} = do
|
|||||||
migrateAll `runSqlPool` sqlPool
|
migrateAll `runSqlPool` sqlPool
|
||||||
| otherwise -> whenM (requiresMigration `runSqlPool` sqlPool) $ do
|
| otherwise -> whenM (requiresMigration `runSqlPool` sqlPool) $ do
|
||||||
$logErrorS "setup" "Migration required"
|
$logErrorS "setup" "Migration required"
|
||||||
liftIO . exitWith $ ExitFailure 2
|
liftIO . exitWith $ ExitFailure 130
|
||||||
|
|
||||||
$logDebugS "setup" "Cluster-Config"
|
$logDebugS "setup" "Cluster-Config"
|
||||||
appCryptoIDKey <- clusterSetting (Proxy :: Proxy 'ClusterCryptoIDKey) `runSqlPool` sqlPool
|
appCryptoIDKey <- clusterSetting (Proxy :: Proxy 'ClusterCryptoIDKey) `runSqlPool` sqlPool
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user