Skip to content

Commit cff44e6

Browse files
committed
Moved errors to arduino package
1 parent e0d983a commit cff44e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commands/errors.go renamed to arduino/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 license@arduino.cc.
1515

16-
package commands
16+
package arduino
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)