B
B
Bogdan2017-05-06 00:08:34
gulp.js
Bogdan, 2017-05-06 00:08:34

How to make gulp output error to console?

Hello, how can I do in Gulp so that the error message is displayed in full format with "Details", otherwise when using

.pipe(plumber({errorHandler: notify.onError("Error: <%= error.message %>", title: "Ошибка")}))

truncated error information is thrown into the console
[23:55:36] gulp-notify: [Ошибка] sass\test.scss
Error: Invalid CSS after "}": expected 1 selector or at-rule, was "sdsddfsdfdjgggfd;"
        on line 14 of sass/test.scss
>> }

   -^

I wish there was more detailed information.
Details:
    status: 1
    fileD:/ProjectRuby/portal_template/sass/test.scss
    line: 14
    column: 2
    formattedErrorInvalid CSS after "}": expected 1 selector or at-rulewas "sdsddfsdfdjgggfd;"

        on line 14 of sass/test.scss
>> }

But at the same time, what would Windows 10 display in the message window, only error.message, as in the screenshot. Thanks
90f9df0fda7d42bdb058d85cb0f90457.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question