Skip to content

Commit a8007b8

Browse files
Add instructions on how to contact the package manager to error message
1 parent 78bfa74 commit a8007b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: arduino/cores/packagemanager/download.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (pme *Explorer) DownloadToolRelease(tool *cores.ToolRelease, config *downlo
125125
if resource == nil {
126126
return &arduino.FailedDownloadError{
127127
Message: tr("Error downloading tool %s", tool),
128-
Cause: errors.New(tr("no versions available for the current OS"))}
128+
Cause: errors.New(tr("no versions available for the current OS, try contacting %s", tool.Tool.Package.Email))}
129129
}
130130
return resource.Download(pme.DownloadDir, config, tool.String(), progressCB, "")
131131
}

Diff for: arduino/cores/packagemanager/install_uninstall.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ func (pme *Explorer) InstallTool(toolRelease *cores.ToolRelease, taskCB rpc.Task
313313

314314
toolResource := toolRelease.GetCompatibleFlavour()
315315
if toolResource == nil {
316-
return fmt.Errorf(tr("no compatible version of %s tools found for the current os"), toolRelease.Tool.Name)
316+
return fmt.Errorf(tr("no compatible version of %s tools found for the current os, try contacting %s"),
317+
toolRelease.Tool.Name, toolRelease.Tool.Package.Email)
317318
}
318319
destDir := pme.PackagesDir.Join(
319320
toolRelease.Tool.Package.Name,

0 commit comments

Comments
 (0)