summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--Plugins/Monitors/Common.hs2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 10038c3..b092c21 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,8 @@ _New features_
Rockai).
- Mail plugin expands paths starting with "~/" (Ben Boeckel). Ditto
MBox.
+ - Weather monitor now skips not retrieved fields, instead of
+ displaying a long error message.
- New compilation flag, `all_extensions`.
- Documentation and website updates.
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 =