Skip to content

Commit 496d067

Browse files
authored
Merge pull request #68 from xm1k3/validate-fix-err
Validate fix err
2 parents 5f78e9f + db7ed64 commit 496d067

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmd/validate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package cmd
66
import (
77
"fmt"
88
"io/ioutil"
9+
"log"
910
"os"
1011
"path/filepath"
1112
"sync"
@@ -27,7 +28,7 @@ If a template is found to be invalid, it is deleted from the folder.`,
2728
var wg sync.WaitGroup
2829
filepath.Walk(path, func(filePath string, info os.FileInfo, err error) error {
2930
if err != nil {
30-
return err
31+
log.Fatal(err)
3132
}
3233
if info.IsDir() {
3334
} else if filepath.Ext(filePath) == ".yaml" {

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var versionCmd = &cobra.Command{
2727
Short: "Print cent version",
2828
Long: "Print cent version",
2929
Run: func(cmd *cobra.Command, args []string) {
30-
fmt.Println("Cent v1.3.2")
30+
fmt.Println("Cent v1.3.3")
3131
},
3232
}
3333

0 commit comments

Comments
 (0)