Improve error messages in dialogs.