splunk / splunk-operator

Splunk Operator for Kubernetes
Other
210 stars 115 forks source link

prevent masking of error messages in searchheadcluster.go #1372

Closed s1113950 closed 1 month ago

s1113950 commented 3 months ago

Throwing an error and then returning fmt.Errorf("custom err msg") is masking the underlying err and making it harder to debug why "custom err msg" happened. This change keeps the "custom err msg" but passes through the original error that happened!

akondur commented 1 month ago

Implemented in PR#1385