}
if (throwable != null) {
if (throwable instanceof RhinoException) {
RhinoException rhinoEx = (RhinoException) throwable;
if (rhinoEx.lineNumber() != 0) {
msg += ". Line Number " + rhinoEx.lineNumber();
}
if (rhinoEx.lineSource() != null) {
msg += ". Line source: " + rhinoEx.lineSource();
}
}
theLog.error(msg, throwable);