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}` ) }