We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddf393 commit 67c2fa8Copy full SHA for 67c2fa8
cmd/update.go
@@ -19,7 +19,11 @@ var updateCmd = &cobra.Command{
19
versionFile := filepath.Join(config.Config.CodacyDirectory(), "version.yaml")
20
versionData, err := os.ReadFile(versionFile)
21
if err != nil {
22
- fmt.Printf("Failed to read version.yaml: %v\n", err)
+ if os.IsNotExist(err) {
23
+ fmt.Println("Could not read version file. Make sure you have the latest version of the script")
24
+ } else {
25
+ fmt.Printf("Failed to read version.yaml: %v\n", err)
26
+ }
27
os.Exit(1)
28
}
29
0 commit comments