Merge pull request #2184 from kunalkushwaha/oci-error

better image config parse error.
This commit is contained in:
Derek McGowan 2018-03-05 10:29:02 -08:00 committed by GitHub
commit 2b6b99b4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ func loadSpec(path string, s *specs.Spec) error {
return errors.New("cannot load spec config file")
}
if err := json.Unmarshal(raw, s); err != nil {
return errors.New("decoding spec config file failed")
return errors.Errorf("decoding spec config file failed, current supported OCI runtime-spec : v%s", specs.Version)
}
return nil
}