Skip to content

Commit 9362851

Browse files
committed
revel#1058 check directory existence before walk
1 parent 8b0fee7 commit 9362851

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

template.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@ func (loader *TemplateLoader) Refresh() *Error {
361361
return nil
362362
}
363363

364+
if _, err = os.Stat(fullSrcDir); os.IsNotExist(err) {
365+
// #1058 Given views/template path is not exists
366+
// so no need to walk, move on to next path
367+
continue
368+
}
369+
364370
funcErr := filepath.Walk(fullSrcDir, templateWalker)
365371

366372
// If there was an error with the Funcs, set it and return immediately.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy