diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-04-08 16:37:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-08 16:37:47 +0000 |
commit | 0655bdad4a72ee429f1a48575ae284c4c71b3d09 (patch) | |
tree | 092f1d647d4b65ff25e772d6254c242681579204 /runsc | |
parent | e3461753eeece2cb5c65a0068abfef1c4ee6b9c3 (diff) | |
parent | cbf00d633db744febdac262ecfbc4908aa4e8a2f (diff) |
Merge release-20210322.0-57-gcbf00d633 (automated)
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/sandbox/sandbox.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index 450f92645..47da2dd10 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -486,7 +486,7 @@ func (s *Sandbox) createSandboxProcess(conf *config.Config, args *Args, startSyn } if deviceFile, err := gPlatform.OpenDevice(); err != nil { - return fmt.Errorf("opening device file for platform %q: %v", gPlatform, err) + return fmt.Errorf("opening device file for platform %q: %v", conf.Platform, err) } else if deviceFile != nil { defer deviceFile.Close() cmd.ExtraFiles = append(cmd.ExtraFiles, deviceFile) @@ -1174,7 +1174,7 @@ func deviceFileForPlatform(name string) (*os.File, error) { f, err := p.OpenDevice() if err != nil { - return nil, fmt.Errorf("opening device file for platform %q: %v", p, err) + return nil, fmt.Errorf("opening device file for platform %q: %w", name, err) } return f, nil } |