Added message and code to CoursePublicationAttempt, error handling in the UI