summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/spf13/afero/regexpfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/spf13/afero/regexpfs.go')
-rw-r--r--vendor/github.com/spf13/afero/regexpfs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/spf13/afero/regexpfs.go b/vendor/github.com/spf13/afero/regexpfs.go
index 9d92dbc0..c8fc0086 100644
--- a/vendor/github.com/spf13/afero/regexpfs.go
+++ b/vendor/github.com/spf13/afero/regexpfs.go
@@ -126,6 +126,9 @@ func (r *RegexpFs) Open(name string) (File, error) {
}
}
f, err := r.source.Open(name)
+ if err != nil {
+ return nil, err
+ }
return &RegexpFile{f: f, re: r.re}, nil
}