From 282509ca105bedbea1a981b36fab193b09bbee14 Mon Sep 17 00:00:00 2001 From: Pawan Osman Date: Wed, 10 Apr 2024 07:11:33 +0300 Subject: [PATCH] Update error message to include the requested endpoint in app.ts --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 07c8267..be31a44 100644 --- a/src/app.ts +++ b/src/app.ts @@ -299,7 +299,7 @@ app.use((req, res) => res.status(404).send({ status: false, error: { - message: `The requested endpoint was not found. please make sure to use "http://localhost:3040/v1" as the base URL.`, + message: `The requested endpoint (${req.method.toLocaleUpperCase()} ${req.path}) was not found. please make sure to use "http://localhost:3040/v1" as the base URL.`, type: "invalid_request_error", }, support: "https://discord.pawan.krd",