From 172d3691cda0d5322f56b7a5ce4efa5368d0f875 Mon Sep 17 00:00:00 2001 From: Stevche Radevski Date: Fri, 10 Jan 2025 16:17:46 +0100 Subject: [PATCH] fix: Put routes loader error inline --- packages/medusa/src/loaders/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/medusa/src/loaders/api.ts b/packages/medusa/src/loaders/api.ts index 8be4c0468f4bd..baa5bb807a6c5 100644 --- a/packages/medusa/src/loaders/api.ts +++ b/packages/medusa/src/loaders/api.ts @@ -65,8 +65,7 @@ export default async ({ app, container, plugins }: Options) => { }).load() } catch (err) { throw Error( - "An error occurred while registering API Routes. See error in logs for more details.", - { cause: err } + `An error occurred while registering API Routes. Error: ${err.message}` ) }