added logging
[JENKINS-5073]

Suppressed a confusing 2nd error message.