Fix SimpleError not logging properly

This commit is contained in:
Dragory 2020-05-11 04:02:22 +03:00
parent 31d3e2b1d7
commit fc706d38ee
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -1,10 +1,10 @@
import util from "util";
export class SimpleError {
export class SimpleError extends Error {
public message: string;
constructor(message: string) {
this.message = message;
super(message);
}
[util.inspect.custom](depth, options) {