I wrote a SBT task to run cssLint for my project using rhino. cssLint returns exit code to my SBT task.

My question is how to make the task fail if the exit code is non-zero?

I don't want to throw any exceptions. I want my last line of the task result to show `[Failed]` instead of `[success]` and exit code of my SBT task to be non-zero.

**SAMPLE**

```
MyTask {
  val exitcode = //rhino functions

  //what to do??
}

```

The actual intent is to fail the build if css errors are present.