Special-case curl error 18 in widget too

This commit is contained in:
Sviatoslav Sydorenko 2020-07-19 18:45:08 +02:00
parent f507a2c43f
commit c64243d23b
No known key found for this signature in database
GPG key ID: 9345E8FEA89CA455

View file

@ -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