From 64316345119d8dcc542b2ebb91d990c6feec9f9e Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 3 Dec 2019 17:40:04 -0500 Subject: [PATCH] better error --- pkging/pkgutil/stuff.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkging/pkgutil/stuff.go b/pkging/pkgutil/stuff.go index 698baad..c81a83e 100644 --- a/pkging/pkgutil/stuff.go +++ b/pkging/pkgutil/stuff.go @@ -1,6 +1,7 @@ package pkgutil import ( + "fmt" "io" "os" "strings" @@ -29,7 +30,7 @@ func Stuff(w io.Writer, c here.Info, decls parser.Decls) error { } df, err := os.Open(pf.Abs) if err != nil { - return err + return fmt.Errorf("could open stuff %s: %s", pf.Abs, err) } defer df.Close()