trust store validation error message needs improvement
JeyJeyGao opened this issue · comments
Junjie Gao commented
The trust store validation error message needs improvement. Here is the code.
storeType, name, found := strings.Cut(trustStore, ":")
if !found {
return nil, fmt.Errorf("trust policy statement %q is missing separator in trust store value %q", policy.Name, trustStore)
}
We had better provide a valid trust store format to help user figure out the value. We can add "Format : is required" to the end of the error message.
Patrick Zheng commented
To be more specific, we could say Format <TrustStoreType>:<TrustStoreName> is required