Skip to content

Commit 0964176

Browse files
dssengdeadprogram
authored andcommitted
chore: correct GOOS=js name in error messages for WASM
1 parent 1ffa9a4 commit 0964176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compileopts/target.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func LoadTarget(options *Options) (*TargetSpec, error) {
189189
case "wasip2":
190190
options.Target = "wasip2"
191191
default:
192-
return nil, errors.New("GOARCH=wasm but GOOS is not set correctly. Please set GOOS to wasm, wasip1, or wasip2.")
192+
return nil, errors.New("GOARCH=wasm but GOOS is not set correctly. Please set GOOS to js, wasip1, or wasip2.")
193193
}
194194
}
195195

@@ -369,7 +369,7 @@ func defaultTarget(options *Options) (*TargetSpec, error) {
369369
return nil, fmt.Errorf("invalid GOMIPS=%s: must be hardfloat or softfloat", options.GOMIPS)
370370
}
371371
case "wasm":
372-
return nil, fmt.Errorf("GOARCH=wasm but GOOS is unset. Please set GOOS to wasm, wasip1, or wasip2.")
372+
return nil, fmt.Errorf("GOARCH=wasm but GOOS is unset. Please set GOOS to js, wasip1, or wasip2.")
373373
default:
374374
return nil, fmt.Errorf("unknown GOARCH=%s", options.GOARCH)
375375
}

0 commit comments

Comments
 (0)