diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-06 17:39:20 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-06 20:35:26 +0200 |
commit | c4a116558725ab885b7d303e0924cf2b35c9ba79 (patch) | |
tree | bb1a784ec632a9dc360422aade152102952638c6 /commands/genman.go | |
parent | e77bb13c201770929be6b5caf413be48ecbe1d8f (diff) |
all: Handle all errors
As reported by `errcheck`.
Diffstat (limited to 'commands/genman.go')
-rw-r--r-- | commands/genman.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/genman.go b/commands/genman.go index f7a3a424d..7b26afeed 100644 --- a/commands/genman.go +++ b/commands/genman.go @@ -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 |