renamed to onErrorHtml