Skip to content

Commit

Permalink
fix: ensure errors are thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifigueira committed Sep 11, 2024
1 parent 320d187 commit 3b42c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/recorder/crxPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,11 @@ export default class Player extends EventEmitter {
await cb(callMetadata);
} catch (e) {
callMetadata.error = serializeError(e);
throw e;
} finally {
callMetadata.endTime = monotonicTime();
await context.instrumentation.onAfterCall(context, callMetadata);
if (callMetadata.error)
throw callMetadata.error.error;
}
}

Expand Down

0 comments on commit 3b42c0b

Please sign in to comment.