Skip to content

Commit

Permalink
Merge pull request #505 from q384566678/err-fix-runtimetest
Browse files Browse the repository at this point in the history
runtimetest: fix error return
  • Loading branch information
Ma Shimiao committed Nov 3, 2017
2 parents e2ffaf1 + 3c9cdc5 commit dea65b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/runtimetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func loadSpecConfig(path string) (spec *rspec.Spec, err error) {
if os.IsNotExist(err) {
return nil, fmt.Errorf("%s not found", specConfig)
}

return nil, err
}
defer cf.Close()

Expand Down

0 comments on commit dea65b0

Please sign in to comment.