Skip to content

Commit

Permalink
Change error message when no available releases are found
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Aug 28, 2023
1 parent ddce252 commit 3c941ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arduino/cores/packagemanager/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (pme *Explorer) FindPlatformReleaseDependencies(item *PlatformReference) (*
} else {
release = platform.GetLatestCompatibleRelease()
if release == nil {
return nil, nil, fmt.Errorf(tr("platform %s has no available releases"), platform.String())
return nil, nil, fmt.Errorf(tr("platform %s has no available releases for your OS"), platform.String())
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/integrationtest/core/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1142,5 +1142,5 @@ func TestCoreHavingIncompatibleDepTools(t *testing.T) {
// When no compatible version are found return error
_, stderr, err = cli.Run("core", "install", "incompatible_vendor:avr", additionalURLs)
require.Error(t, err)
require.Contains(t, string(stderr), "has no available releases")
require.Contains(t, string(stderr), "has no available releases for your OS")
}

0 comments on commit 3c941ff

Please sign in to comment.