Skip to content

Commit

Permalink
fix: Put routes loader error inline
Browse files Browse the repository at this point in the history
  • Loading branch information
sradevski committed Jan 10, 2025
1 parent a126f40 commit 172d369
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/medusa/src/loaders/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
)
}

Expand Down

0 comments on commit 172d369

Please sign in to comment.