Skip to content

Commit 7c9c892

Browse files
committed
strings
1 parent 152a35a commit 7c9c892

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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 app language: %w, please make sure you are inside your app's directory and are using a supported language", err)
544+
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
545545
}
546546
fmt.Printf("Detected app 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 app language: %w, please make sure you are inside your app's directory and are using a supported language", err)
720+
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
721721
}
722722
fmt.Printf("Detected app 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 app language: %w, please make sure you are inside your app's directory and are using a supported language", err)
1441+
return fmt.Errorf("unable to determine app language: %w, please make sure you are inside an app directory and are using a supported language", err)
14421442
}
14431443
fmt.Printf("Detected app language [%s]\n", util.Accented(string(projectType)))
14441444

pkg/agentfs/detect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ func DetectProjectType(dir fs.FS) (ProjectType, error) {
113113
return ProjectTypePythonPip, nil
114114
}
115115

116-
return ProjectTypeUnknown, errors.New("project type could not be identified; expected package.json, requirements.txt, pyproject.toml, or lock files")
116+
return ProjectTypeUnknown, errors.New("expected package.json, requirements.txt, pyproject.toml, or lock files")
117117
}

0 commit comments

Comments
 (0)