first iteration of publish() method
added three error messages connected to publishing
Merge branch 'bugid-98050' into consumer-sprint30-bugid-96419