fix: Put routes loader error inline (#10912)
This commit is contained in:
@@ -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}`
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user