Skip to content

Commit

Permalink
fix: pass command id to sfCommandError event
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Apr 11, 2024
1 parent a08e1bb commit 6a069af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sfCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export abstract class SfCommand<T> 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;
}
Expand Down

0 comments on commit 6a069af

Please sign in to comment.