Skip to content

Commit

Permalink
Use parameter property
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Jul 2, 2023
1 parent d539163 commit 4e9a171
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ const argsMap = new Map(
);

export class ErrorWithUserMessage extends Error {
userMessage: string;
constructor(message: string, userMessage: string) {
constructor(message: string, readonly userMessage: string) {
super(message);
this.userMessage = userMessage;
}
}

Expand Down

0 comments on commit 4e9a171

Please sign in to comment.