Skip to content

Commit

Permalink
filestore: Handle non-existent asset dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
octavore committed Jun 3, 2018
1 parent 97ca0a2 commit 644fabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/content/templates/filestore/filestore.go
Expand Up @@ -196,6 +196,9 @@ func (f *FileStore) Get(themeName string) (store.Theme, error) {

baseAssetDir := path.Clean(path.Join(f.baseDir, themeDir, fileStoreAssetsDir))
err = filepath.Walk(baseAssetDir, func(p string, info os.FileInfo, err error) error {
if os.IsNotExist(err) {
return nil
}
if err != nil {
return errors.Wrap(err)
}
Expand Down

0 comments on commit 644fabf

Please sign in to comment.