gulpjs / gulpjs/plugin-error

PluginError toString output

オープン
#14 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。