From 9aa63845263a4fdd2e2c50841fa9c423498e269c Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 16 May 2018 18:16:35 -0700 Subject: [PATCH] fix: add DEBUG=* to error --- src/config.ts | 2 +- src/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 4202cc8d..b3d61b12 100644 --- a/src/config.ts +++ b/src/config.ts @@ -442,7 +442,7 @@ export class Config implements IConfig { protected warn(err: any, scope?: string) { if (this.warned) return err.name = `${err.name} Plugin: ${this.name}` - err.detail = compact([err.detail, `module: ${this._base}`, scope && `task: ${scope}`, `plugin: ${this.name}`, `root: ${this.root}`]).join('\n') + err.detail = compact([err.detail, `module: ${this._base}`, scope && `task: ${scope}`, `plugin: ${this.name}`, `root: ${this.root}`, 'See more details with DEBUG=*']).join('\n') process.emitWarning(err) } } diff --git a/src/plugin.ts b/src/plugin.ts index 676d24da..f2910f83 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -222,7 +222,7 @@ export class Plugin implements IPlugin { private addErrorScope(err: any, scope?: string) { err.name = `${err.name} Plugin: ${this.name}` - err.detail = compact([err.detail, `module: ${this._base}`, scope && `task: ${scope}`, `plugin: ${this.name}`, `root: ${this.root}`]).join('\n') + err.detail = compact([err.detail, `module: ${this._base}`, scope && `task: ${scope}`, `plugin: ${this.name}`, `root: ${this.root}`, 'See more details with DEBUG=*']).join('\n') return err } }