Skip to content

Commit 9c732c0

Browse files
committed
lapack/netlib: return error on go list failure
1 parent 9259ba9 commit 9c732c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lapack/netlib/generate_errors.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ func pathTo(module, file string) (string, error) {
8787
cmd.Stderr = &stderr
8888
err := cmd.Run()
8989
if err != nil {
90-
// TODO(kortschak): Make this an error when go1.10 support is dropped.
91-
log.Printf("module aware go list failed with stderr output %q: %v", stderr.String(), err)
92-
return filepath.Join(gopath, "src", module, file), nil
90+
return "", fmt.Errorf("module aware go list failed with stderr output %q: %w", stderr.String(), err)
9391
}
9492
version := strings.TrimSpace(strings.Join(strings.Split(buf.String(), " "), "@"))
9593
return filepath.Join(gopath, "pkg", "mod", version, file), nil

0 commit comments

Comments
 (0)