Commit aa6d0f9f authored by Viktor Vassilyev's avatar Viktor Vassilyev

fix(Template): correct check error

parent 68b0bd98
......@@ -40,7 +40,7 @@ func walk(fs http.FileSystem, path string, info os.FileInfo, walkFn filepath.Wal
dir, err := fs.Open(path)
defer dir.Close()
if err == nil {
if err != nil {
err1 := walkFn(path, info, err)
if err1 != nil {
return err1
......
......@@ -206,7 +206,7 @@ func BuildTemplate(dir string, files ...string) error {
return self.visit(path, f, err)
})
if err != nil {
fmt.Printf("filepath.Walk() returned %v\n", err)
fmt.Printf("Walk() returned %v\n", err)
return err
}
buildAllFiles := len(files) == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment