diff options
Diffstat (limited to 'commands/list.go')
-rw-r--r-- | commands/list.go | 8 |
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() |