PluginError toString output
- 主要语言
- JavaScript
- 星标
- 20
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
描述
Imported from https://github.com/gulpjs/gulp-util/issues/74.
> Currently console.log'ing the error outputs way too much:
>
> ```
> { [Error: error main.scss (Line 7: Invalid CSS after "@import ": expected file to import (string or url()), was "blah;")]
> message: 'error main.scss (Line 7: Invalid CSS after "@import ": expected file to import (string or url()), was "blah;")',
> showStack: false,
> showProperties: true,
> plugin: 'gulp-ruby-sass',
> __safety: { toString: [Function] } }
> ```
>
> It should only output:
>
> ```
> [Error: error main.scss (Line 7: Invalid CSS after "@import ": expected file to import (string or url()), was "blah;")]
> ```
>
> Or even better:
>
> ```
> [gulp-ruby-sass error: error main.scss (Line 7: Invalid CSS after "@import ": expected file to import (string or url()), was "blah;")]
> ```
>
> Just define a `.toString` method for it outputting what we want.
> ##
>
> re https://github.com/yeoman/generator-gulp-webapp/pull/242#issuecomment-67011031
>
/cc @sindresorhus @contra
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。