Skip to content

Commit

Permalink
fix non-supported providers message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalpress committed May 4, 2023
1 parent e9af82c commit 26f5e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rules_api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func GetRules(provider, sourceVersion string) (Rulebook, error) {

container, _ := gabs.ParseJSON(body)
if container.ExistsP("error") {
return rulebook, errors.New(utils.StripProviderPrefix(provider) + ":" + rulebook.TargetVersion)
return rulebook, errors.New(utils.StripProviderPrefix(provider) + ":" + rulebook.SourceVersion)
}

return rulebook, nil
Expand Down

0 comments on commit 26f5e9d

Please sign in to comment.