mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 16:10:54 +00:00
warn instead of throw
This commit is contained in:
parent
82c13fce56
commit
64640c8407
@ -15,7 +15,7 @@ export const ensureRequiredMiddlewares = (app: express.Application) => {
|
||||
|
||||
for (const name of requiredMiddlewares) {
|
||||
if (!isMiddlewareUsed(app, name)) {
|
||||
throw new Error(
|
||||
console.warn(
|
||||
`Required middleware '${name}' not found. Please ensure it is added to your express application.`,
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user