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:
parent
31d3e2b1d7
commit
fc706d38ee
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue