Skip to content

failOnError doesn't seem to work #14

@PAStheLoD

Description

@PAStheLoD

Hello!

According to the docs, the process should be killed on failOnError: true, and with wait: true the task should be failed, but I don't see this happening. (Nor do I actually saw any code related to this in run.js.)

// from a Gruntfile.js
        run: {
            t: {
                options: { failOnError: true, wait: true },
                args: ['t.js']
            },

# t.js
console.log("this goes to stdout ");
console.error(" this goes to stderr ");

And there is output on stderr:

pas@strange:~/$ node t.js  1>/dev/null
 this goes to stderr 

Yet

pas@strange:~/$ grunt run:t
Running "run:t" (run) task
this goes to stdout 
 this goes to stderr 

Done, without errors.

Luckily exit-code checking works wonderfully with wait.

Could you look into this?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions