Skip to content

Commit 226cc8d

Browse files
scastlarasacha-c
andauthored
fix: change cli message on warn to "patrol" and not "scan" (#18)
* fix: change cli message on warn to "patrol" and not "scan" * chore: update internal/cli/patrol.go Co-authored-by: Sacha Brouté <[email protected]> --------- Co-authored-by: Sacha Brouté <[email protected]>
1 parent 80cf12e commit 226cc8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/patrol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func PatrolAction(cCtx *cli.Context) error {
143143

144144
patrolService := patrol.New(gitlabService, slackService, gitService, osvService)
145145

146-
// Run the scan
146+
// Do the patrol
147147
if warn, err := patrolService.Patrol(
148148
cCtx.StringSlice(groupsFlag),
149149
cCtx.StringSlice(projectsFlag),
@@ -155,7 +155,7 @@ func PatrolAction(cCtx *cli.Context) error {
155155
); err != nil {
156156
return errors.Join(errors.New("failed to scan"), err)
157157
} else if warn != nil {
158-
return cli.Exit("Scan was partially successful, some errors occurred. Check the logs for more information.", 1)
158+
return cli.Exit("Patrol was partially successful, some errors occurred. Check the logs for more information.", 1)
159159
}
160160

161161
return nil

0 commit comments

Comments
 (0)