Make publication errors more clear.

#6500 
![selection_102](https://cloud.githubusercontent.com/assets/1222368/4301640/84e93244-3e51-11e4-8f4d-3c4fd553a5bd.png)

![selection_104](https://cloud.githubusercontent.com/assets/1222368/4301637/81dd0878-3e51-11e4-8dce-c5b1957e71b9.png)