address review issue: s/added to/listed in

This commit is contained in:
Zeke Lu 2022-10-07 02:34:57 +08:00
parent abd77415d8
commit ec97646f22
2 changed files with 2 additions and 2 deletions

View File

@ -719,7 +719,7 @@ func LoadModFile(ctx context.Context) *Requirements {
data, f, err := ReadModFile(gomod, fixVersion(ctx, &fixed))
if err != nil {
if inWorkspaceMode() {
base.Fatalf("go: cannot load module added to go.work file: %v", err)
base.Fatalf("go: cannot load module listed in go.work file: %v", err)
} else {
base.Fatalf("go: %v", err)
}

View File

@ -1,5 +1,5 @@
! go list .
stderr '^go: cannot load module added to go\.work file: open .+go\.mod: no such file or directory$'
stderr '^go: cannot load module listed in go\.work file: open .+go\.mod: no such file or directory$'
-- go.work --
use ./y