Skip to content

Commit 416a3c8

Browse files
authored
feat: WIRE-1149 - verify if app/brick required devices are present
1 parent 58bee81 commit 416a3c8

File tree

10 files changed

+241
-103
lines changed

10 files changed

+241
-103
lines changed

cmd/arduino-app-cli/app/start.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"fmt"
66

77
"github.com/spf13/cobra"
8+
"golang.org/x/text/cases"
9+
"golang.org/x/text/language"
810

911
"github.com/arduino/arduino-app-cli/cmd/arduino-app-cli/completion"
1012
"github.com/arduino/arduino-app-cli/cmd/arduino-app-cli/internal/servicelocator"
@@ -56,7 +58,8 @@ func startHandler(ctx context.Context, cfg config.Configuration, app app.Arduino
5658
case orchestrator.InfoType:
5759
fmt.Fprintln(out, "[INFO]", message.GetData())
5860
case orchestrator.ErrorType:
59-
feedback.Fatal(message.GetError().Error(), feedback.ErrGeneric)
61+
errMesg := cases.Title(language.AmericanEnglish).String(message.GetError().Error())
62+
feedback.Fatal(fmt.Sprintf("[ERROR] %s", errMesg), feedback.ErrGeneric)
6063
return nil
6164
}
6265
}

0 commit comments

Comments
 (0)