summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index a97c28294..3f1697ea9 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -62,6 +62,8 @@ type Response struct {
Cmd *cobra.Command
}
+// IsUserError returns true is the Response error is a user error rather than a
+// system error.
func (r Response) IsUserError() bool {
return r.Err != nil && isUserError(r.Err)
}