Catch and print all IOErrors
This commit is contained in:
parent
7b7a363693
commit
b9f9d27105
2 changed files with 2 additions and 16 deletions
|
|
@ -15,7 +15,7 @@ import Mima.Vm.Storage
|
|||
|
||||
loadMetadataOrEmpty :: FilePath -> Run Metadata
|
||||
loadMetadataOrEmpty path = catch (loadMetadata path) $ \e -> do
|
||||
liftIO $ putStrLn $ "Metafile could not be loaded. " ++ T.unpack e
|
||||
liftIO $ putStrLn $ "Metafile could not be loaded: " ++ T.unpack e
|
||||
pure mempty
|
||||
|
||||
main :: IO ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue