public void result(Result result) { if (!monochrome) { @out.append(formats.up(1)); } if (_match != null) { printStep(result.getStatus(), _match.getArguments(), _match.getLocation(), true); } //Match should only be null if there's an error in something that's not a step, so this should be safe if (result.getErrorMessage() != null) { printError(result); } }