Skip to content

Commit

Permalink
Do not log when there is no lunch
Browse files Browse the repository at this point in the history
  • Loading branch information
The1Penguin committed Oct 18, 2024
1 parent 2e671f0 commit eeb293f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ update = do
]

for_ rest $ \r -> case menu r of
Left e ->
Left e@(NMParseError _ _) ->
asks _cLogPath >>= \path ->
liftIO getCurrentTime >>=
liftIO . flip writeFile (show e) . flip (printf "%s/%s%s.txt" path) (name r) . show
Right _ -> pure ()
_ -> pure ()

return (View rest textday d)
where
Expand Down

0 comments on commit eeb293f

Please sign in to comment.