Closed elfreyshira closed 10 years ago
This PR fully fixes the error:
Fatal error: Unable to read 'undefined' file (Error code: ENOENT).
You call done(), but it doesn't fully end the validate function. The return ensures that it exits the function to end the grunt task.
done()
validate
return
I came across this error when linting 2 partial html files using the wrapfile option. My grunt config looked something like this:
wrapfile
validation: { options: { wrapfile: 'test/validation-wrap.html', reportpath: false, reset: true }, files: { src: ['partials/**/*.html'] } },
This PR fully fixes the error:
You call
done()
, but it doesn't fully end thevalidate
function. Thereturn
ensures that it exits the function to end the grunt task.I came across this error when linting 2 partial html files using the
wrapfile
option. My grunt config looked something like this: