Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix(errors): include sucess:false in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GGORG0 committed Jul 17, 2022
1 parent efece7a commit bcff7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export abstract class SharXError {
}

send(res: Response): void {
res.status(this.httpCode).json(this.toJSON());
res.status(this.httpCode).json({ success: false, ...this.toJSON() });
}
}

Expand Down

0 comments on commit bcff7f7

Please sign in to comment.