Skip to content

Commit

Permalink
feat(*): address PR comments
Browse files Browse the repository at this point in the history
closes #600
  • Loading branch information
aborovsky committed Oct 29, 2024
1 parent 0700a37 commit c6c0f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/ErrorMessageFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type GenericCommandErrorParams =

export class ErrorMessageFactory {
public static genericCommandError(params: GenericCommandErrorParams): string {
const message = this.getMessageTitle(params);
const message = this.getTitle(params);
const details = this.extractErrorDetails(params);

return this.formatFinalMessage(message, details);
Expand All @@ -21,7 +21,7 @@ export class ErrorMessageFactory {
: `${baseMessage}.`;
}

private static getMessageTitle(params: GenericCommandErrorParams): string {
private static getTitle(params: GenericCommandErrorParams): string {
return 'message' in params
? params.message
: `Error during "${params.command}"`;
Expand Down

0 comments on commit c6c0f26

Please sign in to comment.