mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-17 07:49:09 +01:00
Special-case curl error 18 in ⛅ widget too
This commit is contained in:
parent
f507a2c43f
commit
c64243d23b
1 changed files with 4 additions and 1 deletions
|
@ -395,7 +395,10 @@ local function worker(args)
|
|||
if not warning_shown 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'
|
||||
stderr ~= 'curl: (28) Failed to connect to api.openweathermap.org port 443: Connection timed out' and
|
||||
stderr:find(
|
||||
'^curl: %(18%) transfer closed with %d+ bytes remaining to read$'
|
||||
) ~= nil
|
||||
) then
|
||||
show_warning(stderr)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue