Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: add DEBUG=* to error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 17, 2018
1 parent fb3782e commit 9aa6384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 9aa6384

Please sign in to comment.