Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uuhan committed Oct 8, 2017
1 parent d9ec4b0 commit cae1c46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ main = do
let Story{..} = stories !! cn

case r of
Left err -> printStories stories >> printError err
Right _ -> printTitle title >> printStories stories
Left err -> printError err
Right _ -> printTitle title

printStories stories
where
printError :: SomeException -> IO ()
printError err = do
Expand Down

0 comments on commit cae1c46

Please sign in to comment.