diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-05 00:42:36 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-05 00:42:36 -0600 |
commit | 3d58c018117b26e9fb0c3a347303c8eb37e30341 (patch) | |
tree | 5d182ac3233dbe3073306278db89c1fbb1684cd0 /src/nshd/hackers_git | |
parent | e729072329556406dfdb19b89d177e89e27ca4a7 (diff) |
error handling fixes
Diffstat (limited to 'src/nshd/hackers_git')
-rw-r--r-- | src/nshd/hackers_git/hackers_parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers_parse.go b/src/nshd/hackers_git/hackers_parse.go index f1f360f..a9a03f3 100644 --- a/src/nshd/hackers_git/hackers_parse.go +++ b/src/nshd/hackers_git/hackers_parse.go @@ -77,7 +77,7 @@ func load_user_yaml(filename string) (ret user, err error) { } if iface, isSet := data["groups"]; !isSet { - errs = append(errs, "\"groups\" is not set") + ret.groups = make([]string, 0) } else if ary, isTyp := iface.([]interface{}); !isTyp { errs = append(errs, "\"groups\" is not an array") } else { |