gulpjs / gulpjs/plugin-error

PluginError toString output

Aperta
#14 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
20
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.