Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

'Usage in code' section does not provide full API reference of the less.render() method. #454

Open
rulatir opened this issue Aug 19, 2017 · 0 comments

Comments

@rulatir
Copy link

rulatir commented Aug 19, 2017

This is a real life scenario: I am trying to fix an issue where the callback to less.render() throws, and as a result I get unhandled rejection. I went to the Less documentation site hoping that I would find info on how to pass a rejection callback to less.render(). My hope was in vain. Do I have to ensure that the render() callback doesn't let any exceptions out? Do I pass the rejection callback as 4th argument? Does less.render() return a promise?

This should be documented somewhere, preferably in the 'Usage in code' section.

It is quite possible that less.render() does everything synchronously and the unhandled rejection happens entirely within my callback. Still, if arguments and return value were thoroughly documented, I would know this by now.

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

No branches or pull requests

2 participants