mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
all: Handle all errors
As reported by `errcheck`.
This commit is contained in:
parent
e77bb13c20
commit
c4a1165587
7 changed files with 55 additions and 29 deletions
|
@ -43,7 +43,9 @@ in the "man" directory under the current directory.`,
|
|||
}
|
||||
if found, _ := helpers.Exists(genmandir, hugofs.Os); !found {
|
||||
jww.FEEDBACK.Println("Directory", genmandir, "does not exist, creating...")
|
||||
hugofs.Os.MkdirAll(genmandir, 0777)
|
||||
if err := hugofs.Os.MkdirAll(genmandir, 0777); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
cmd.Root().DisableAutoGenTag = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue