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();