Skip to content

Commit

Permalink
fixes a bug where pyroscope thinks a spy is not supported when it is
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 19, 2021
1 parent 4307cee commit 0a9da1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exec/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func performChecks(spyName string) error {
}
}

if stringsContains(spy.SupportedSpies, spyName) {
if !stringsContains(spy.SupportedSpies, spyName) {
supportedSpies := supportedSpiesWithoutGospy()
return fmt.Errorf(
"Spy \"%s\" is not supported. Available spies are: %s\n%s",
color.BlueString("spyName"),
color.BlueString(spyName),
strings.Join(supportedSpies, ","),
armMessage(),
)
Expand Down

0 comments on commit 0a9da1c

Please sign in to comment.