aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec/exec.go')
-rw-r--r--src/os/exec/exec.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go
index 5ef9540141..41fbf96370 100644
--- a/src/os/exec/exec.go
+++ b/src/os/exec/exec.go
@@ -34,11 +34,13 @@ import (
"syscall"
)
-// Error records the name of a binary that failed to be executed
-// and the reason it failed.
+// Error is returned by LookPath when it fails to classify a file as an
+// executable.
type Error struct {
+ // Name is the file name for which the error occurred.
Name string
- Err error
+ // Err is the underlying error.
+ Err error
}
func (e *Error) Error() string {