aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/module.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/module.go')
-rw-r--r--storage/filesystem/module.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/storage/filesystem/module.go b/storage/filesystem/module.go
index 2e469d3..6f3de3f 100644
--- a/storage/filesystem/module.go
+++ b/storage/filesystem/module.go
@@ -10,5 +10,10 @@ type ModuleStorage struct {
}
func (s *ModuleStorage) Module(name string) (storage.Storer, error) {
- return NewStorage(s.dir.Module(name))
+ fs, err := s.dir.Module(name)
+ if err != nil {
+ return nil, err
+ }
+
+ return NewStorage(fs)
}