mirror of
https://github.com/golang/go.git
synced 2025-05-27 18:31:35 +00:00
cmd/go: improve error message for names forbidden by Windows
Fixes #29589 Change-Id: I69ad461e70b236d9729a42053e35128437449e32 Reviewed-on: https://go-review.googlesource.com/c/156658 Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
902b1f6059
commit
5a0743b020
@ -226,7 +226,7 @@ func checkElem(elem string, fileName bool) error {
|
||||
}
|
||||
for _, bad := range badWindowsNames {
|
||||
if strings.EqualFold(bad, short) {
|
||||
return fmt.Errorf("disallowed path element %q", elem)
|
||||
return fmt.Errorf("%q disallowed as path element component on Windows", short)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user