10 lines
149 B
JavaScript
10 lines
149 B
JavaScript
const errorMiddleware = async (context, next) => {
|
|
try {
|
|
await next();
|
|
} catch (e) {
|
|
console.log(e);
|
|
}
|
|
};
|
|
|
|
export { errorMiddleware };
|