Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
Only warn about non-existant css links
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Sep 11, 2013
1 parent 6ed185c commit bc32ff2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bdo.cabal
@@ -1,5 +1,5 @@
name: bdo
version: 1.0.0
version: 1.0.1
synopsis: Update CSS in the browser without reloading the page.
description: Update CSS in the browser without reloading the page.
license: BSD3
Expand Down
7 changes: 5 additions & 2 deletions src/Bdo.hs
Expand Up @@ -43,8 +43,11 @@ startServer listenPort = do
| link `elem` links -> do T.hPutStrLn h "Sending link update ..."
reply h' [] link
hClose h'
| otherwise -> T.hPutStrLn h "That link doesn't exist in the page. To see the page's links: clients"
_ -> T.hPutStrLn h "That client isn't connected right now."
| otherwise -> do
T.hPutStrLn h "That link doesn't (didn't?) exist in the page. Sending anyway ..."
reply h' [] link
hClose h'
_ -> do T.hPutStrLn h "That client isn't connected right now."
updateCurrentClient h = do client <- readMVar currentClient
case client of
Nothing -> hPutStrLn h "No current client!"
Expand Down

0 comments on commit bc32ff2

Please sign in to comment.