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 0f32d35 commit 46a8c79Copy full SHA for 46a8c79
server/src/index.ts
@@ -63,14 +63,16 @@ export function validateGeneratedFile(req: Request, res: Response) {
63
contentType: 'text/plain; charset=utf-8'
64
}
65
});
66
- stream.on('error', err => {
+ stream.on('error', async err => {
67
res.status(500).send(err.message);
68
Sentry.captureException(err);
69
if (transaction) transaction.finish();
70
+ await Sentry.flush(5000);
71
- stream.on('finish', () => {
72
+ stream.on('finish', async () => {
73
res.status(200).send(encodeURIComponent(objectName));
74
75
76
77
78
stream.end(JSON.stringify(report));
0 commit comments