From 96db6b1376f689a1fa772a8736ec2d50303e0d8a Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Wed, 6 Aug 2025 10:41:08 +0200 Subject: [PATCH] Add a more helpful message if cause of failure is known --- lib/www/server/lib/db/plan/lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/www/server/lib/db/plan/lib/index.js b/lib/www/server/lib/db/plan/lib/index.js index a78872a..72cf1b3 100644 --- a/lib/www/server/lib/db/plan/lib/index.js +++ b/lib/www/server/lib/db/plan/lib/index.js @@ -111,6 +111,7 @@ async function getLineName (client, projectId, payload) { } else { // TODO send a user notification via WS to let them know // they haven't configured the line name parameters + throw { status: 400, message: `Line name format parameters missing or invalid. Please check ‘Line name format’ in this project's [configuration settings](./configuration)` }; } // return undefined