Collect all errors in envy
This commit is contained in:
+2
-2
@@ -79,8 +79,8 @@ main :: IO ()
|
||||
main = do
|
||||
cfg <-
|
||||
Envy.load @ConfigT >>= \case
|
||||
Left err -> do
|
||||
Log.error $ printf "failed to read config: %s" err
|
||||
Left errs -> do
|
||||
forM_ errs $ Log.error . printf "failed to read config: %s"
|
||||
exitFailure
|
||||
Right c ->
|
||||
pure c
|
||||
|
||||
Reference in New Issue
Block a user