3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21:51 +00:00

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"; import util from "util";
export class SimpleError { export class SimpleError extends Error {
public message: string; public message: string;
constructor(message: string) { constructor(message: string) {
this.message = message; super(message);
} }
[util.inspect.custom](depth, options) { [util.inspect.custom](depth, options) {