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