Skip to content

Commit 51447b1

Browse files
committed
error case
1 parent 8b1695c commit 51447b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/lk/agent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
541541

542542
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
543543
if err != nil {
544-
return fmt.Errorf("unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err)
544+
return fmt.Errorf("Unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err)
545545
}
546546
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
547547

@@ -717,7 +717,7 @@ func deployAgent(ctx context.Context, cmd *cli.Command) error {
717717

718718
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
719719
if err != nil {
720-
return fmt.Errorf("unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
720+
return fmt.Errorf("Unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
721721
}
722722
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
723723

@@ -1438,7 +1438,7 @@ func generateAgentDockerfile(ctx context.Context, cmd *cli.Command) error {
14381438

14391439
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
14401440
if err != nil {
1441-
return fmt.Errorf("unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
1441+
return fmt.Errorf("Unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
14421442
}
14431443
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
14441444

0 commit comments

Comments
 (0)