Skip to content

Commit 5a9d85c

Browse files
committed
add missing await
1 parent 02e9ae7 commit 5a9d85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handler.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let wrapped_handler;
3737
try {
3838
wrapped_handler = datadog(await load(taskRootEnv, handlerEnv), { traceExtractor });
3939
} catch (error) {
40-
emitTelemetryOnErrorOutsideHandler(error, handlerEnv, Date.now());
40+
await emitTelemetryOnErrorOutsideHandler(error, handlerEnv, Date.now());
4141
throw error;
4242
}
4343

0 commit comments

Comments
 (0)