Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created November 6, 2012 14:22
Show Gist options
  • Save rxaviers/4024994 to your computer and use it in GitHub Desktop.
Save rxaviers/4024994 to your computer and use it in GitHub Desktop.

I have purposely forced an error building documentation by deleting the config file.

Running:

xavier@xavier ~/www/download.jqueryui.com/tmp/api.jqueryui.com $ grunt build-xml-entries

We get the full error:

>> TaskError: Unable to read "config.json" file (Error code: ENOENT).
>> No "build-xml-entries" targets found.
<WARN> Task "build-xml-entries" failed. Use --force to continue. </WARN>

Running:

xavier@xavier /userdata/Documents/www/download.jqueryui.com $ grunt prepare

We get:

>> Error building documentation: path.existsSync is now called `fs.existsSync`.
<WARN> Task "prepare" failed. Use --force to continue. </WARN>

Aborted due to warnings.

Note that the above Error building documentation is generated by the following js code:

grunt.log.error( errorMsg + ": " + error.stderr )

It means the below is being outputed to stdin.

>> TaskError: Unable to read "config.json" file (Error code: ENOENT).
>> No "build-xml-entries" targets found.
<WARN> Task "build-xml-entries" failed. Use --force to continue. </WARN>

Which means, our grunt error logging function is correct. What we need to fix is how the above is being outputed.

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