Added an error dialog.