1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 02:50:19 +00:00

add EnableGzip support & delete if views not exist

This commit is contained in:
astaxie
2013-04-21 00:49:48 +08:00
parent 2ad4478612
commit ab38c2f8e6
2 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func AddTemplateExt(ext string) {
func BuildTemplate(dir string) error {
if _, err := os.Stat(dir); err != nil {
if os.IsNotExist(err) {
return err
return nil
} else {
return errors.New("dir open err")
}