Skip to content

Commit 77ff5f4

Browse files
cmaglieumbynos
andauthored
Apply suggestions from code review
Co-authored-by: Umberto Baldi <34278123+umbynos@users.noreply.github.com>
1 parent a5a910e commit 77ff5f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino/resources/index.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ func (res *IndexResource) Download(destDir *paths.Path, downloadCB rpc.DownloadP
6868
signatureFileName := indexFileName + ".sig"
6969
signaturePath = destDir.Join(signatureFileName)
7070

71-
// .tar archive may contain both index and signature
71+
// .tar.bz2 archive may contain both index and signature
7272

7373
// Extract archive in a tmp/archive subdirectory
7474
f, err := tmpIndexPath.Open()
7575
if err != nil {
76-
return &arduino.PermissionDeniedError{Message: tr("Error extracting %s", tmpIndexPath), Cause: err}
76+
return &arduino.PermissionDeniedError{Message: tr("Error opening %s", tmpIndexPath), Cause: err}
7777
}
7878
defer f.Close()
7979
tmpArchivePath := tmp.Join("archive")

0 commit comments

Comments
 (0)