We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c2a6d commit dd821dfCopy full SHA for dd821df
IHP/FileStorage/ControllerFunctions.hs
@@ -102,10 +102,9 @@ storeFileWithOptions fileInfo options = do
102
let destPath :: Text = "static/" <> objectPath
103
Directory.createDirectoryIfMissing True (cs $ "static/" <> directory)
104
105
- trySaveFile <- Exception.try $ fileInfo |> get #fileContent |> LBS.writeFile (cs destPath)
106
- case trySaveFile of
107
- Left (Exception.SomeException e) -> throw e
108
- Right _ -> pure ()
+ fileInfo
+ |> get #fileContent
+ |> LBS.writeFile (cs destPath)
109
110
let frameworkConfig = getFrameworkConfig ?context
111
pure $ (get #baseUrl frameworkConfig) <> "/" <> objectPath
0 commit comments