This commit is contained in:
David Newhall II 2019-06-12 22:56:46 -07:00
parent 915610226d
commit 4606f95384
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ func (c *Config) DumpJSON(filter string) error {
fmt.Fprintf(os.Stderr, "[ERROR] "+m, v...)
} // Log all errors to stderr.
switch sites, err := filterSites(controller, c.Sites); {
sites, err := filterSites(controller, c.Sites)
switch {
case err != nil:
return err
case StringInSlice(filter, []string{"d", "device", "devices"}):