Consul tls specfic issue

is there anyway to add specific tls errors to the log.

currently * Failed to join 192.0.2.2: remote error: tls: bad certificate
makes me want to throw things instead something along the lines of
currently * Failed to join 192.0.2.2: remote error: tls: bad certificate certificate valid for consul not server.lab.consul