remove hard coded 500 errors from handleWeatherInternal
All checks were successful
Generic zig build / build (push) Successful in 1m29s
Generic zig build / deploy (push) Successful in 1m16s

This commit is contained in:
Emil Lerch 2026-01-05 16:57:33 -08:00
parent 6e829eea30
commit ffd87490cd
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -117,11 +117,7 @@ fn handleWeatherInternal(
res.body = "Location not found\n"; res.body = "Location not found\n";
return; return;
}, },
else => { else => return err,
res.status = 500;
res.body = "Internal server error\n";
return;
},
} }
}; };
@ -133,11 +129,7 @@ fn handleWeatherInternal(
res.body = "Location not found\n"; res.body = "Location not found\n";
return; return;
}, },
else => { else => return err,
res.status = 500;
res.body = "Internal server error\n";
return;
},
} }
}; };
defer weather.deinit(); defer weather.deinit();