if (errors != null && filename != null) {
extendedMessage.append(getSource(filename));
}
for (int i = 0; i < errors.length; i++) {
CompilerError error = errors[i];
if (i > 0) extendedMessage.append("\n");
extendedMessage.append("Line ");
extendedMessage.append(error.getStartLine());
extendedMessage.append(", column ");
extendedMessage.append(error.getStartColumn());
extendedMessage.append(": ");
extendedMessage.append(error.getMessage());
}
return (extendedMessage.toString());
}
else {
return(super.getMessage());