Created helper for error messages.