We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f3a899 commit 6d25cfaCopy full SHA for 6d25cfa
pkg/scout/scout.go
@@ -20,7 +20,7 @@ func (s *Scout) DoSearch() ([]string, error) {
20
case map[string]interface{}:
21
s.parseMap(val, "")
22
default:
23
- fmt.Errorf("could not parse JSON structure")
+ return []string{}, fmt.Errorf("could not parse JSON structure")
24
}
25
return s.found, nil
26
0 commit comments