diff --git a/src/server/recorder/crxPlayer.ts b/src/server/recorder/crxPlayer.ts index 97df5a854..f2f9dc86f 100644 --- a/src/server/recorder/crxPlayer.ts +++ b/src/server/recorder/crxPlayer.ts @@ -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; } }