display error messages upon failure