Add window title to the error dialog.