more informative error dialog
dialog_on_error() => error_dialog()
add dialog_on_error as another method