fix: Put routes loader error inline (#10912)

This commit is contained in:
Stevche Radevski
2025-01-16 08:11:19 +01:00
committed by GitHub
parent c75678d6d4
commit 44cd0224af

View File

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