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()
|
}).load()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw Error(
|
throw Error(
|
||||||
"An error occurred while registering API Routes. See error in logs for more details.",
|
`An error occurred while registering API Routes. Error: ${err.message}`
|
||||||
{ cause: err }
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user