From 6a069af5d88456b6c3ea822973ec20af1dd8f1c8 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Thu, 11 Apr 2024 12:33:28 -0600 Subject: [PATCH] fix: pass command id to sfCommandError event --- src/sfCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfCommand.ts b/src/sfCommand.ts index 40db1d33f..ba4755823 100644 --- a/src/sfCommand.ts +++ b/src/sfCommand.ts @@ -422,7 +422,7 @@ export abstract class SfCommand extends Command { // Emit an event for plugin-telemetry prerun hook to pick up. // @ts-expect-error because TS is strict about the events that can be emitted on process. - process.emit('sfCommandError', err); + process.emit('sfCommandError', err, this.id); throw err; }