Skip to content

Commit

Permalink
[skip-changelog] Fix string indexing in `tool not available for the c…
Browse files Browse the repository at this point in the history
…urrent os` error message (arduino#2099)
  • Loading branch information
MatteoPologruto authored Mar 8, 2023
1 parent 736d161 commit fed439a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arduino/cores/packagemanager/install_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fed439a

Please sign in to comment.