First commit
This commit is contained in:
9
authserver/middlewares/errorMiddleware.js
Normal file
9
authserver/middlewares/errorMiddleware.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const errorMiddleware = async (context, next) => {
|
||||
try {
|
||||
await next();
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
};
|
||||
|
||||
export { errorMiddleware };
|
||||
Reference in New Issue
Block a user