We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 051608a commit c6c952aCopy full SHA for c6c952a
src/api.ts
@@ -24,8 +24,9 @@ router.post(
24
try {
25
const result = await typedData(req);
26
res.json(result);
27
- } catch (e) {
28
- log.warn(`[ingestor] msg validation failed (typed data): ${JSON.stringify(e)}`);
+ } catch (e: any) {
+ const errorMessage = typeof e === 'object' ? e.message || JSON.stringify(e) : String(e);
29
+ log.warn(`[ingestor] msg validation failed (typed data): ${errorMessage}`);
30
sendError(res, e);
31
}
32
0 commit comments