Skip to content

Commit

Permalink
Merge pull request #531 from salesforcecli/mdonnalley/provide-id
Browse files Browse the repository at this point in the history
fix: pass command id to sfCommandError event
  • Loading branch information
iowillhoit committed Apr 17, 2024
2 parents b1f0639 + 6a069af commit 36ff163
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 36ff163

Please sign in to comment.