diff --git a/src/bundle-orchestrator.ts b/src/bundle-orchestrator.ts index 1a8e3002..08acc437 100644 --- a/src/bundle-orchestrator.ts +++ b/src/bundle-orchestrator.ts @@ -223,7 +223,7 @@ export class BundleOrchestrator extends Transform { callback(); } catch (error) { - this.logger.error("_flush completed with error", { error: error?.toString() ?? error }); + this.logger.error("_flush completed with error", { error: error.toString() }); callback(new PluginError(PluginName, error)); } }