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

View lookup should return something at least #1065

Closed
wants to merge 1 commit into from
Closed

View lookup should return something at least #1065

wants to merge 1 commit into from

Commits on Apr 2, 2012

  1. View lookup should return something at least

    Even if the path doesn't exist it's better for the lookup
    method to return the last path checked. Without a return
    value, if one attempts to render a path that doesn't
    exist one gets "TypeError: Bad argument" because the
    first param for fs.readFile is undefined. If the path is
    returned one gets the more helpful "Error: ENOENT, no
    such file or directory" along with the string for the
    path.
    Gabriel Farrell committed Apr 2, 2012
    Configuration menu
    Copy the full SHA
    fd5127e View commit details
    Browse the repository at this point in the history