Skip to content

Commit

Permalink
Merge pull request #601 from q384566678/validate-linux-fix
Browse files Browse the repository at this point in the history
Validate_linux: Modify the returned error
  • Loading branch information
liangchenye authored Mar 14, 2018
2 parents cc1aa34 + e99b47e commit 36891b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/validate_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (v *Validator) CheckLinux() (errs error) {
}

if _, exists := devTypeList[devID]; exists {
logrus.Warnf("type:%s, major:%d and minor:%d for linux devices is duplicated", device.Type, device.Major, device.Minor)
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))
} else {
devTypeList[devID] = true
}
Expand Down

0 comments on commit 36891b9

Please sign in to comment.