diff options
| author | Russ Cox <rsc@golang.org> | 2020-07-03 12:25:49 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2020-10-20 00:59:22 +0000 |
| commit | 2291cae2af659876e93a3e1f95c708abb1475d02 (patch) | |
| tree | e5140b7c1d3a0a7d5206e5b261a6ef2aa5d98891 /src/os/exec_plan9.go | |
| parent | a4ede9f9a6254360d39d0f45aec133c355ac6b2a (diff) | |
| download | go-2291cae2af659876e93a3e1f95c708abb1475d02.tar.xz | |
os: use keyed literals for PathError
Necessary to move PathError to io/fs.
For #41190.
Change-Id: I05e87675f38a22f0570d4366b751b6169f7a1b13
Reviewed-on: https://go-review.googlesource.com/c/go/+/243900
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/os/exec_plan9.go')
| -rw-r--r-- | src/os/exec_plan9.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec_plan9.go b/src/os/exec_plan9.go index b0abf743dd..ef8dad11b6 100644 --- a/src/os/exec_plan9.go +++ b/src/os/exec_plan9.go @@ -34,7 +34,7 @@ func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err e pid, h, e := syscall.StartProcess(name, argv, sysattr) if e != nil { - return nil, &PathError{"fork/exec", name, e} + return nil, &PathError{Op: "fork/exec", Path: name, Err: e} } return newProcess(pid, h), nil |
