Skip to content

Commit f4a9add

Browse files
Change error message when no available releases are found
1 parent 27945ce commit f4a9add

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arduino/cores/packagemanager/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (pme *Explorer) FindPlatformReleaseDependencies(item *PlatformReference) (*
8989
} else {
9090
release = platform.GetLatestCompatibleRelease()
9191
if release == nil {
92-
return nil, nil, fmt.Errorf(tr("platform %s has no available releases"), platform.String())
92+
return nil, nil, fmt.Errorf(tr("platform %s has no available releases for your OS"), platform.String())
9393
}
9494
}
9595

internal/integrationtest/core/core_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,5 +1142,5 @@ func TestCoreHavingIncompatibleDepTools(t *testing.T) {
11421142
// When no compatible version are found return error
11431143
_, stderr, err = cli.Run("core", "install", "incompatible_vendor:avr", additionalURLs)
11441144
require.Error(t, err)
1145-
require.Contains(t, string(stderr), "has no available releases")
1145+
require.Contains(t, string(stderr), "has no available releases for your OS")
11461146
}

0 commit comments

Comments
 (0)