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 } }