From 3c941ff76b6b233f84e76af2b3664800d869909e Mon Sep 17 00:00:00 2001 From: Alessio Perugini Date: Mon, 28 Aug 2023 15:47:57 +0200 Subject: [PATCH] Change error message when no available releases are found --- arduino/cores/packagemanager/download.go | 2 +- internal/integrationtest/core/core_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino/cores/packagemanager/download.go b/arduino/cores/packagemanager/download.go index fc05a5ee323..b7989b61729 100644 --- a/arduino/cores/packagemanager/download.go +++ b/arduino/cores/packagemanager/download.go @@ -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()) } } diff --git a/internal/integrationtest/core/core_test.go b/internal/integrationtest/core/core_test.go index 9ec821bad3c..4e405a7a1d3 100644 --- a/internal/integrationtest/core/core_test.go +++ b/internal/integrationtest/core/core_test.go @@ -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") }