column-setter icon indicating copy to clipboard operation
column-setter copied to clipboard

Error handler for a mixin or function call with too many arguments

Open robweychert opened this issue 9 years ago • 1 comments

robweychert avatar Jun 06 '16 21:06 robweychert

I’m not sure if this is necessary. The current error message is clear and useful:

error main.scss (Line 68: Function colspan takes 2 arguments but 3 were passed.)

What's preferable about approach taken by the error handlers included so far is that they don’t crash the compiler (as the above error does). They offer a detailed warning about the misbegotten code and then omit that code from the compiling process.

If we do add this error handler, we’ll need to find a way for a conditional statement to determine how many arguments have been passed, (e.g. @if arguments > 3) and after a fair amount of searching, I still haven’t found a way to do that.

robweychert avatar Jun 13 '16 20:06 robweychert