Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsatotake <doublequotation@gmail.com>2022-04-26 20:57:04 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-05-08 17:56:26 +0300
commite77ca3c105bd64c5077d823d2127f6f812a4f681 (patch)
treeebbe9c310bfab1e34f9fd2e36b738fd2a37d6f11 /commands/list.go
parentf2946da9e806c2bafbdd26707fe339db79bd980b (diff)
Add `clock` cli flag
Close #8787
Diffstat (limited to 'commands/list.go')
-rw-r--r--commands/list.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/list.go b/commands/list.go
index f4321d031..4b62c91c5 100644
--- a/commands/list.go
+++ b/commands/list.go
@@ -99,6 +99,10 @@ List requires a subcommand, e.g. ` + "`hugo list drafts`.",
return newSystemError("Error building sites", err)
}
+ if err != nil {
+ return newSystemError("Error building sites", err)
+ }
+
writer := csv.NewWriter(os.Stdout)
defer writer.Flush()
@@ -127,6 +131,10 @@ List requires a subcommand, e.g. ` + "`hugo list drafts`.",
return newSystemError("Error building sites", err)
}
+ if err != nil {
+ return newSystemError("Error building sites", err)
+ }
+
writer := csv.NewWriter(os.Stdout)
defer writer.Flush()