runtime: check if error loading runtime config
Looks like we inadvertantly removed the check on the loadRuntimeConfig
error return value. Adding back...
Fixes:
@@ -61,6 +61,9 @@ func create(ctx context.Context, s *service, r *taskAPI.CreateTaskRequest) (*con
}
s.config, err = loadRuntimeConfig(s, r, ociSpec.Annotations)
+ if err != nil {
+ return nil, err
+ }
// create tracer
// This is the earliest location we can create the tracer because we must wait
