fix: Put routes loader error inline (#10912)
This commit is contained in:
1 parent
c75678d6d4
commit
44cd0224af
1 file changed
+1
-2
@@ -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