Error handler for a mixin or function call with too many arguments
robweychert opened this issue · 1 comments
robweychert commented
Error handler for a mixin or function call with too many arguments
robweychert commented
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.