Skip to content

Commit

Permalink
chore: use command name for context
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Apr 27, 2023
1 parent 3903577 commit cf2a42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sfCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ export abstract class SfCommand<T> extends Command {
const sfErrorProperties = removeEmpty({
code: codeFromError,
actions: 'actions' in error ? error.actions : null,
context: 'context' in error ? error.context : null,
commandName: 'commandName' in error ? error.commandName : null,
context: 'context' in error ? error.context : this.statics.name,
commandName: 'commandName' in error ? error.commandName : this.statics.name,
data: 'data' in error ? error.data : null,
result: 'result' in error ? error.result : null,
});
Expand Down

0 comments on commit cf2a42f

Please sign in to comment.