Added support for displaying a message for the error.