From ffd87490cda3153905cc799488bccef82da9d914 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 5 Jan 2026 16:57:33 -0800 Subject: [PATCH] remove hard coded 500 errors from handleWeatherInternal --- src/http/handler.zig | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/http/handler.zig b/src/http/handler.zig index 34d6b2a..e47789b 100644 --- a/src/http/handler.zig +++ b/src/http/handler.zig @@ -117,11 +117,7 @@ fn handleWeatherInternal( res.body = "Location not found\n"; return; }, - else => { - res.status = 500; - res.body = "Internal server error\n"; - return; - }, + else => return err, } }; @@ -133,11 +129,7 @@ fn handleWeatherInternal( res.body = "Location not found\n"; return; }, - else => { - res.status = 500; - res.body = "Internal server error\n"; - return; - }, + else => return err, } }; defer weather.deinit();