Skip to content

Commit 93f2d75

Browse files
committed
Moved errors to their own package
1 parent e0d983a commit 93f2d75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: commands/errors.go renamed to errors/errors.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@
1313
// Arduino software without disclosing the source code of your own applications.
1414
// To purchase a commercial license, send an email to [email protected].
1515

16-
package commands
16+
package errors
1717

1818
import (
1919
"fmt"
2020

21+
"github.com/arduino/arduino-cli/i18n"
2122
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
2223
"google.golang.org/grpc/codes"
2324
"google.golang.org/grpc/status"
2425
)
2526

27+
var tr = i18n.Tr
28+
2629
func composeErrorMsg(msg string, cause error) string {
2730
if cause == nil {
2831
return msg

0 commit comments

Comments
 (0)