private void printError(Result result) { Format failed = formats.get("failed"); @out.println(indent(failed.text(result.getErrorMessage()), " ")); }
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); } }