diff options
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r-- | internal/builder/builder.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go index a8205a3..55e68d2 100644 --- a/internal/builder/builder.go +++ b/internal/builder/builder.go @@ -23,7 +23,9 @@ type IOConfig struct { } func mkdirp(dirs ...string) error { - return os.MkdirAll(path.Join(dirs...), 0755) + err := os.MkdirAll(path.Join(dirs...), 0755) + + return errors.Wrap(err, "could not create directory") } func outputToFile(output io.Reader, filename ...string) error { @@ -37,6 +39,7 @@ func outputToFile(output io.Reader, filename ...string) error { if _, err := file.ReadFrom(output); err != nil { return errors.WithMessage(err, "could not write output file") } + return nil } |