Method to get the error message if notification is not true