Fix Publication failure handling.
Merge pull request #4025 from HassenRiahi/FixPublicationFailureMessage

Fix Publication failure handling.