Closed JKVeganAbroad closed 8 years ago
Fixed by https://github.com/gruntjs/grunt-cli/commit/9ea84be2b094f61b856eb44e9fea1cba3c242537
Nice research! We certainly can improve the error messages a bit more. Also the error codes it exits with is currently not correct: https://github.com/gruntjs/grunt/issues/1459
We could fix some of these things in the meantime or fix this while implementing: https://github.com/gruntjs/rfcs/pull/2
Alrighty! I'll close this issue now :)
:+1:
I noticed in grunt-docs Issue # 121 that the suggested solution had led this developer astray in trying to resolve the issue. Apparently there are multiple Stack Overflow questions where other developers have similarly "gotten stuck" (here, here, here) and then Google found some more.
I've submitted a pull request just to remove the following:
If the user indeed hasn't created a
Gruntfile.js
file (or has misnamed it), thengrunt
itself will detect this, and provide error code 2. So fortunately, this isn't an issuegrunt-cli
needs to worry about.Do others think my pull request will assist with debugging? Or should we change the error message to be more specific?