From 6ed4e9e10688aae93f20f5a16cf5bb4a60f2e71b Mon Sep 17 00:00:00 2001 From: Kunal Kushwaha Date: Mon, 5 Mar 2018 14:04:08 +0900 Subject: [PATCH] better image config parse error. compatible oci runtime version printed with parse error Signed-off-by: Kunal Kushwaha --- cmd/ctr/commands/run/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/run/run.go b/cmd/ctr/commands/run/run.go index f9a429dfd..ad3a8f7aa 100644 --- a/cmd/ctr/commands/run/run.go +++ b/cmd/ctr/commands/run/run.go @@ -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 }