]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: use go.dev instead of golang.org in flag errors
authorRuss Cox <rsc@golang.org>
Wed, 5 Nov 2025 20:02:52 +0000 (15:02 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 20:36:38 +0000 (12:36 -0800)
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>
src/cmd/go/internal/work/security.go

index 3b3eba536cb146091082e053df9fad49c4bf917e..cb228d9e4d855dc9c4c44c570f9e7eb668413715 100644 (file)
@@ -375,13 +375,13 @@ Args:
                                }
 
                                if i+1 < len(list) {
-                                       return fmt.Errorf("invalid flag in %s: %s %s (see https://golang.org/s/invalidflag)", source, arg, list[i+1])
+                                       return fmt.Errorf("invalid flag in %s: %s %s (see https://go.dev/s/invalidflag)", source, arg, list[i+1])
                                }
-                               return fmt.Errorf("invalid flag in %s: %s without argument (see https://golang.org/s/invalidflag)", source, arg)
+                               return fmt.Errorf("invalid flag in %s: %s without argument (see https://go.dev/s/invalidflag)", source, arg)
                        }
                }
        Bad:
-               return fmt.Errorf("invalid flag in %s: %s", source, arg)
+               return fmt.Errorf("invalid flag in %s: %s (see https://go.dev/s/invalidflag)", source, arg)
        }
        return nil
 }