This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
quizzy-application/drill-and-practice/middlewares/errorMiddleware.js
AndrewTrieu ee0936c8b1 Fix context
2023-03-10 16:52:00 +02:00

10 lines
149 B
JavaScript

const errorMiddleware = async (context, next) => {
try {
await next();
} catch (e) {
console.log(e);
}
};
export { errorMiddleware };