Skip to content

Commit 56ef04a

Browse files
committed
[PLUTO-1396] add warning if file does not exist
1 parent 67c2fa8 commit 56ef04a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ var updateCmd = &cobra.Command{
2020
versionData, err := os.ReadFile(versionFile)
2121
if err != nil {
2222
if os.IsNotExist(err) {
23-
fmt.Println("Could not read version file. Make sure you have the latest version of the script")
23+
fmt.Println("Could not read version file. Make sure you have the latest version of the script at:")
24+
fmt.Println("https://github.com/codacy/codacy-cli-v2/blob/main/README.md#download t")
2425
} else {
2526
fmt.Printf("Failed to read version.yaml: %v\n", err)
2627
}

0 commit comments

Comments
 (0)