From 70f98daaf323f9f173369b093610168e9e22cc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Sat, 18 Apr 2020 19:14:24 +0200 Subject: [PATCH] Add missing error check in RegexpFs Open --- regexpfs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/regexpfs.go b/regexpfs.go index 9d92dbc..c8fc008 100644 --- a/regexpfs.go +++ b/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 }