diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/build/main.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/build/main.go b/cmd/build/main.go index 0b1cc46..d6b44d4 100644 --- a/cmd/build/main.go +++ b/cmd/build/main.go @@ -31,8 +31,8 @@ func main() { log.Panic("could not change to source directory") } } - - if err := builder.BuildSite(ioConfig); err != nil { + r, err := builder.BuildSite(ioConfig) + if err != nil { switch cause := errors.Cause(err).(type) { case *fs.PathError: log.Error("path error", "error", err) @@ -43,4 +43,8 @@ func main() { } os.Exit(1) } + + for _, h := range r.Hashes { + fmt.Printf("'%s'\n", h) + } } |