Skip to content

Commit eead136

Browse files
author
Ma Shimiao
authored
Merge pull request #508 from wking/config-in-root-bundle-dir-error
runtimetest: Raise ConfigInRootBundleDir for missing config.json
2 parents 801e6fd + 6c98b46 commit eead136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/runtimetest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func loadSpecConfig(path string) (spec *rspec.Spec, err error) {
6868
cf, err := os.Open(configPath)
6969
if err != nil {
7070
if os.IsNotExist(err) {
71-
return nil, fmt.Errorf("%s not found", specConfig)
71+
return nil, specerror.NewError(specerror.ConfigInRootBundleDir, err, rspec.Version)
7272
}
7373

7474
return nil, err

0 commit comments

Comments
 (0)