Print error message on publish failure