Added a message when failed to publish.