spec(backend): IdentifiableErrorの場合もエラーメッセージが正常に表示されるように (MisskeyIO#463)
This commit is contained in:
parent
82cc3987c1
commit
4eb645403f
9 changed files with 67 additions and 37 deletions
|
|
@ -10,9 +10,9 @@ export class IdentifiableError extends Error {
|
|||
public message: string;
|
||||
public id: string;
|
||||
|
||||
constructor(id: string, message?: string) {
|
||||
constructor(id: string, message: string) {
|
||||
super(message);
|
||||
this.message = message ?? '';
|
||||
this.message = message;
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue