if (t instanceof DocumentException) {
return t.getMessage();
} else if (t instanceof MissingVariableException) {
- return "Evaluation of property '" + name + "' failed\n" +
- t.getMessage();
+ return name + ":\n" +
+ t.getMessage().replaceAll("(?m)^", " ");
} else if (t instanceof SCLDatabaseException) {
- return t.getMessage();
+ StringBuilder sb = new StringBuilder();
+ sb.append(name + ":\n");
+ sb.append(t.getMessage().replaceAll("(?m)^", " "));
+ return sb.toString();
} else if (t instanceof NotFoundException) {
return t.getMessage();
} else if (t instanceof ImportFailureException) {