forked from mirror/pkger
better error
This commit is contained in:
parent
0167919fce
commit
6431634511
|
@ -1,6 +1,7 @@
|
||||||
package pkgutil
|
package pkgutil
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -29,7 +30,7 @@ func Stuff(w io.Writer, c here.Info, decls parser.Decls) error {
|
||||||
}
|
}
|
||||||
df, err := os.Open(pf.Abs)
|
df, err := os.Open(pf.Abs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return fmt.Errorf("could open stuff %s: %s", pf.Abs, err)
|
||||||
}
|
}
|
||||||
defer df.Close()
|
defer df.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue