diff options
Diffstat (limited to 'src/server/Main.hs')
-rw-r--r-- | src/server/Main.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/Main.hs b/src/server/Main.hs index e7e759b..14e69fa 100644 --- a/src/server/Main.hs +++ b/src/server/Main.hs @@ -16,10 +16,10 @@ import Config main :: IO () main = do - config <- getConfig "config.txt" - case config of - Left error -> - putStrLn error + eitherConfig <- getConfig "config.txt" + case eitherConfig of + Left errorMessage -> + putStrLn errorMessage Right config -> do runMigrations scotty (port config) $ do |