summaryrefslogtreecommitdiff
path: root/weather-widget
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-07-16 10:46:02 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-07-16 10:46:02 +0200
commitf507a2c43fc4d96bd5089665ab68dfef071fb6e0 (patch)
tree02b0adfe930bbaeadafb27f9a7f6de9bb75dd9ba /weather-widget
parent14af203e28392e9d13a20ad9a57558140a89938f (diff)
Special-case a curl connection timeout @ ⛅ widget
This is a follow-up for #169.
Diffstat (limited to 'weather-widget')
-rw-r--r--weather-widget/weather.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index e3fe118..b6b3c11 100644
--- a/weather-widget/weather.lua
+++ b/weather-widget/weather.lua
@@ -393,7 +393,10 @@ local function worker(args)
local function update_widget(widget, stdout, stderr)
if stderr ~= '' then
if not warning_shown then
- if stderr ~= 'curl: (52) Empty reply from server' then
+ if (
+ stderr ~= 'curl: (52) Empty reply from server' and
+ stderr ~= 'curl: (28) Failed to connect to api.openweathermap.org port 443: Connection timed out'
+ ) then
show_warning(stderr)
end
warning_shown = true