loadtemplates: stop if there is any error searching for template files - twitch-go - twitch.tv web application in Go
 (HTM) git clone git://git.codemadness.org/twitch-go
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ea4a79db70c57398cf9c95e5a73144728607d414
 (DIR) parent 30835d8b4e87d701f3984fc481c08474541f5902
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 25 Jul 2015 14:07:20 +0200
       
       loadtemplates: stop if there is any error searching for template files
       
       Diffstat:
         M main.go                             |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/main.go b/main.go
       @@ -80,6 +80,9 @@ func (t *Templates) LoadTemplates(path string) (map[string]*template.Template, e
                        return m, err
                }
                err = filepath.Walk(path, func(p string, info os.FileInfo, err error) error {
       +                if err != nil {
       +                        return err
       +                }
                        if info.IsDir() {
                                return nil
                        }