Skip to content

Commit 2dd7e94

Browse files
rscgopherbot
authored andcommitted
cmd/go: use go.dev instead of golang.org in flag errors
Also add the URL to the one possible error that didn't have it. It looks like CL 93836 just missed the third error case when adding the URL. Change-Id: I837f8a730b25adb42909c9dfbde0dad2f664fec5 Reviewed-on: https://go-review.googlesource.com/c/go/+/718220 Reviewed-by: Michael Matloob <matloob@google.com> Auto-Submit: Russ Cox <rsc@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@golang.org>
1 parent 28f1ad5 commit 2dd7e94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/go/internal/work/security.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ Args:
375375
}
376376

377377
if i+1 < len(list) {
378-
return fmt.Errorf("invalid flag in %s: %s %s (see https://golang.org/s/invalidflag)", source, arg, list[i+1])
378+
return fmt.Errorf("invalid flag in %s: %s %s (see https://go.dev/s/invalidflag)", source, arg, list[i+1])
379379
}
380-
return fmt.Errorf("invalid flag in %s: %s without argument (see https://golang.org/s/invalidflag)", source, arg)
380+
return fmt.Errorf("invalid flag in %s: %s without argument (see https://go.dev/s/invalidflag)", source, arg)
381381
}
382382
}
383383
Bad:
384-
return fmt.Errorf("invalid flag in %s: %s", source, arg)
384+
return fmt.Errorf("invalid flag in %s: %s (see https://go.dev/s/invalidflag)", source, arg)
385385
}
386386
return nil
387387
}

0 commit comments

Comments
 (0)