protected void printError(Exception ex, PrintStream out, boolean verbose) {
List<ScriptError> errors = worker.getErrors();
try {
worker.invoke("ringo/shell", "printError", ex,
new ScriptableList(scope, errors), Boolean.valueOf(verbose));
} catch (Exception x) {
// fall back to RingoRunner.reportError()
RingoRunner.reportError(ex, out, errors, verbose);
}
}