How can I get more detailed error information in Bootstrap?

I am new to using LESS and Bootstrap, and I am building a site for fun. When I run make in my bootstrap directory, if I have screwed something into my variables.less file, I get an absolutely useless error message:

 ################################################## Building Bootstrap... ################################################## Running JSHint on javascript... ✔ Done /usr/local/lib/node_modules/less/lib/less/parser.js:385 throw new(LessError)(e, env); [object Object] make: *** [build] Error 1 

How can I get line numbers or something else? It wasn’t so bad to understand what was happening in this case (I used lighten(@color, 15%) incorrectly lighten(@color, 15%) ), but if I start hacking the design at will, I feel like I'm going to run into trouble, being LESS newb and all.

Any suggestions? Thanks.

+6
source share
1 answer

I had exactly the same problems and ran lessc directly (as merv suggested). I immediately had a context-sensitive error that I could handle. Thanks merv

+3
source

Source: https://habr.com/ru/post/921906/


All Articles