Skip to content

Commit 9a918ce

Browse files
committed
Fix error messages
1 parent 6c9d6a7 commit 9a918ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/pki/errors.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,21 @@ func NewErrExistingCertVidNotEqualAccountVid(subject string, subjectKeyID string
210210
func NewErrRootCertVidNotEqualToAccountVidOrCertVid(rootVID int32, accountVID int32, certVID int32) error {
211211
if rootVID != certVID {
212212
return sdkerrors.Wrapf(ErrCertVidNotEqualToRootVid,
213-
"Root certificate is VID scoped: An intermediate certificate must be also VID scoped to the same VID as a root one: "+
213+
"Root certificate is VID scoped: A child certificate must be also VID scoped to the same VID as a root one: "+
214214
"Root certificate's VID = %v, Certificate's VID = %v",
215215
rootVID, certVID)
216216
}
217217

218218
return sdkerrors.Wrapf(ErrCertVidNotEqualAccountVid,
219219
"Root certificate is VID scoped: "+
220-
"Only a Vendor associated with this VID can add an intermediate certificate: "+
220+
"Only a Vendor associated with this VID can add a child certificate: "+
221221
"Root certificate's VID = %v, Account VID = %v",
222222
rootVID, accountVID)
223223
}
224224

225225
func NewErrAccountVidNotEqualToCertVid(accountVID int32, certVID int32) error {
226226
return sdkerrors.Wrapf(ErrCertVidNotEqualAccountVid,
227-
"Certificate is VID scoped: Only a Vendor associated with this VID can add an intermediate certificate: "+
227+
"Certificate is VID scoped: Only a vendor associated with this VID can add this certificate "+
228228
"Account VID = %v, Certificate's VID = %v",
229229
accountVID, certVID)
230230
}

0 commit comments

Comments
 (0)