Was God angry with Jesus on the cross?

What does “a dog returns to its own vomit” mean? Did Did Peter, Paul and James have a law-based perspective in their writings at times? How should we view Matthew 18 in terms of church discipline? Was God’s wrath poured out on Jesus?