Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
robweychert opened this issue Jun 6, 2016 · 1 comment

Comments

@robweychert
Copy link
Collaborator

No description provided.

@robweychert
Copy link
Collaborator Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant