Skip to content

Commit 6a069af

Browse files
committed
fix: pass command id to sfCommandError event
1 parent a08e1bb commit 6a069af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sfCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export abstract class SfCommand<T> extends Command {
422422

423423
// Emit an event for plugin-telemetry prerun hook to pick up.
424424
// @ts-expect-error because TS is strict about the events that can be emitted on process.
425-
process.emit('sfCommandError', err);
425+
process.emit('sfCommandError', err, this.id);
426426

427427
throw err;
428428
}

0 commit comments

Comments
 (0)