From 4d3a780f46768fc7c69248653c375613705b8149 Mon Sep 17 00:00:00 2001 From: Matteo Pologruto Date: Wed, 8 Mar 2023 16:05:58 +0100 Subject: [PATCH] Fix string indexing in `tool not available for the current os` error message --- arduino/cores/packagemanager/install_uninstall.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino/cores/packagemanager/install_uninstall.go b/arduino/cores/packagemanager/install_uninstall.go index a2e23ae1cf1..cfcc0a21e46 100644 --- a/arduino/cores/packagemanager/install_uninstall.go +++ b/arduino/cores/packagemanager/install_uninstall.go @@ -313,7 +313,7 @@ func (pme *Explorer) InstallTool(toolRelease *cores.ToolRelease, taskCB rpc.Task toolResource := toolRelease.GetCompatibleFlavour() if toolResource == nil { - return fmt.Errorf(tr("no compatible version of %s tools found for the current os, try contacting %s"), + return fmt.Errorf(tr("no compatible version of %[1]s tools found for the current os, try contacting %[2]s"), toolRelease.Tool.Name, toolRelease.Tool.Package.Email) } destDir := pme.PackagesDir.Join(