Skip to content

Commit f935ea1

Browse files
committed
fix: try-catch in typescript 4.4.0
1 parent 27b0311 commit f935ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ app.use(async (req, res) => {
114114
moreInfo: error,
115115
});
116116
});
117-
} catch (err) {
117+
} catch (err: any) {
118118
res.status(400).send({
119119
message: err.message || 'An error occurred',
120120
});

0 commit comments

Comments
 (0)