Skip to content

Commit e99b47e

Browse files
author
Zhou Hao
committed
Implement DevicesErrorOnDup
Signed-off-by: Zhou Hao <[email protected]>
1 parent cb96426 commit e99b47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: validate/validate_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (v *Validator) CheckLinux() (errs error) {
180180
}
181181

182182
if _, exists := devTypeList[devID]; exists {
183-
logrus.Warnf("type:%s, major:%d and minor:%d for linux devices is duplicated", device.Type, device.Major, device.Minor)
183+
logrus.Warnf("%v", specerror.NewError(specerror.DevicesErrorOnDup, fmt.Errorf("type:%s, major:%d and minor:%d for linux devices is duplicated", device.Type, device.Major, device.Minor), rspec.Version))
184184
} else {
185185
devTypeList[devID] = true
186186
}

0 commit comments

Comments
 (0)