Skip to content

Commit

Permalink
Add error check for WalkDir
Browse files Browse the repository at this point in the history
  • Loading branch information
celediel authored and betapictoris committed Jan 22, 2024
1 parent 84b52d4 commit 4d6eddd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ func makeArchive(dir string) error {
}
return nil
})

if err != nil {
return err
}

log.Info("The body is in the casket!", "casket", dir + ".tar.gz")
return nil
Expand Down

0 comments on commit 4d6eddd

Please sign in to comment.