fail method

void fail (String message)

Halt task execution; throws an exception with the given error message.

Implementation

void fail(String message) {
  log(grinder.ansi.emphasized('failed: ') + grinder.ansi.error(message));
  throw new GrinderException(message);
}