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

params and options parameters validation is missing #66

Open
chaitanya-mahamuni opened this issue Nov 10, 2017 · 0 comments
Open

params and options parameters validation is missing #66

chaitanya-mahamuni opened this issue Nov 10, 2017 · 0 comments

Comments

@chaitanya-mahamuni
Copy link

Please add validations same as "Stylesheet.prototype.apply" method inside method below.

Stylesheet.prototype.applyToFile = function(sourcePath, params, options, callback) {

This method throws an error "TypeError: callback is not a function" if called only with 2 params as below:

// documentPath : some inaccessible invalid path
stylesheet.applyToFile(documentPath, function(error, result) {
    if( !err ) {
        // handle success
    } else {
        // handle error
    }
});

But above code works well with accessible valid value "documentPath".

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

No branches or pull requests

1 participant