diff --git a/src/api/dev.ts b/src/api/dev.ts index 4a20a3c..7f87781 100644 --- a/src/api/dev.ts +++ b/src/api/dev.ts @@ -90,7 +90,7 @@ class Watcher extends EventEmitter { if (this.port) { if (!await ports.check(this.port)) { this.emit('fatal', { - error: new Error(`Port ${this.port} is unavailable`) + message: `Port ${this.port} is unavailable` }); return; } diff --git a/src/api/interfaces.ts b/src/api/interfaces.ts index 623ae63..b896477 100644 --- a/src/api/interfaces.ts +++ b/src/api/interfaces.ts @@ -7,11 +7,11 @@ export type ReadyEvent = { export type ErrorEvent = { type: string; - error: Error; + message: string; }; export type FatalEvent = { - error: Error; + message: string; }; export type InvalidEvent = {