summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-11 23:16:53 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-11 23:16:53 +0100
commitcace40accb14067aa168656ac79c779a7c48f701 (patch)
treefc42ae979b8f9e739e3c4b8aa1a19d4b6dc9b376 /Plugins/Monitors
parent60077e86f79c387ee82c1863a5eed403df816012 (diff)
downloadxmobar-cace40accb14067aa168656ac79c779a7c48f701.tar.gz
xmobar-cace40accb14067aa168656ac79c779a7c48f701.tar.bz2
Weather monitor: skip not retrieved fields
Instead of spamming the bar with a long "blah blah: not found!" message.
Diffstat (limited to 'Plugins/Monitors')
-rw-r--r--Plugins/Monitors/Common.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Monitors/Common.hs b/Plugins/Monitors/Common.hs
index 90b2d28..6761e76 100644
--- a/Plugins/Monitors/Common.hs
+++ b/Plugins/Monitors/Common.hs
@@ -248,7 +248,7 @@ getAfterString :: String -> Parser String
getAfterString s =
do { try $ manyTill skipRestOfLine $ string s
; manyTill anyChar newline
- } <|> return ("<" ++ s ++ " not found!>")
+ } <|> return ""
skipTillString :: String -> Parser String
skipTillString s =