Skip to content

Commit

Permalink
Print the unrecognized repository rule type (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfeigin authored Apr 1, 2024
1 parent 2e3b8e9 commit 9b87ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/repos_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (r *RepositoryRule) UnmarshalJSON(data []byte) error {
default:
r.Type = ""
r.Parameters = nil
return fmt.Errorf("RepositoryRule.Type %T is not yet implemented, unable to unmarshal", RepositoryRule.Type)
return fmt.Errorf("RepositoryRule.Type %q is not yet implemented, unable to unmarshal (%#v)", RepositoryRule.Type, RepositoryRule)
}

return nil
Expand Down

0 comments on commit 9b87ff3

Please sign in to comment.