From f2525621030e0e2e0f3d97e9f4af84d5c5536dbc Mon Sep 17 00:00:00 2001 From: Mark Rapson Date: Fri, 28 Aug 2026 20:12:34 +0100 Subject: [PATCH] Fix weather creation route error handling --- src/web/routes/data-sources/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/routes/data-sources/weather.js b/src/web/routes/data-sources/weather.js index 626f2d8..154cadb 100644 --- a/src/web/routes/data-sources/weather.js +++ b/src/web/routes/data-sources/weather.js @@ -63,7 +63,7 @@ module.exports = function registerWeatherRoutes(app, deps) { } catch (error) { next(error); } }); - app.get('/data-sources/weather/new', requirePermission('weather.create'), function (req, res) { + app.get('/data-sources/weather/new', requirePermission('weather.create'), function (req, res, next) { getProviderAvailability().then(function (providerAvailability) { res.send(renderWeatherLocationAddPage({}, req.query.message ? String(req.query.message) : '', req.currentUser, { providerAvailability: providerAvailability })); }).catch(next);