Skip to content

Commit 5e21b5f

Browse files
authored
style(cdk): better error message for unsupported env (#1086)
1 parent f8d633b commit 5e21b5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lwcomponent/component.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ func (s State) Install(name string, version string) error {
249249

250250
artifact, found := component.ArtifactForRunningHost(version)
251251
if !found {
252-
return errors.Errorf("could not find an artifact for version %s on the current platform", version)
252+
return errors.Errorf(
253+
"could not find an artifact for version %s on the current platform (%s/%s)",
254+
version, runtime.GOOS, runtime.GOARCH,
255+
)
253256
}
254257

255258
path, err := component.Path()

0 commit comments

Comments
 (0)