Skip to content

Commit 40ea05e

Browse files
fix typo
1 parent f701abd commit 40ea05e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

commands/cmderrors/cmderrors.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,23 +416,23 @@ func (e *PlatformNotFoundError) Unwrap() error {
416416
return e.Cause
417417
}
418418

419-
// PlatformNotAvaliableForOSError is returned when a platform contains a tool not aviable
419+
// PlatformNotAvailableForOSError is returned when a platform contains a tool not available
420420
// for the user OS + ARCH
421-
type PlatformNotAvaliableForOSError struct {
421+
type PlatformNotAvailableForOSError struct {
422422
Platform string
423423
Cause error
424424
}
425425

426-
func (e *PlatformNotAvaliableForOSError) Error() string {
426+
func (e *PlatformNotAvailableForOSError) Error() string {
427427
return composeErrorMsg(i18n.Tr("Platform '%s'", e.Platform), errors.New(i18n.Tr("platform is not available for your OS")))
428428
}
429429

430430
// GRPCStatus converts the error into a *status.Status
431-
func (e *PlatformNotAvaliableForOSError) GRPCStatus() *status.Status {
431+
func (e *PlatformNotAvailableForOSError) GRPCStatus() *status.Status {
432432
return status.New(codes.FailedPrecondition, e.Error())
433433
}
434434

435-
func (e *PlatformNotAvaliableForOSError) Unwrap() error {
435+
func (e *PlatformNotAvailableForOSError) Unwrap() error {
436436
return e.Cause
437437
}
438438

commands/service_platform_install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (s *arduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallRequest,
8181
platformRelease, tools, err := pme.FindPlatformReleaseDependencies(ref)
8282
if err != nil {
8383
if errors.Is(err, packagemanager.ErrPlatformNotAvailableForOS) {
84-
return &cmderrors.PlatformNotAvaliableForOSError{Platform: ref.String()}
84+
return &cmderrors.PlatformNotAvailableForOSError{Platform: ref.String()}
8585
}
8686
return &cmderrors.PlatformNotFoundError{Platform: ref.String(), Cause: err}
8787
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy