Horrible is the opposite of Divine. Divine is a synonym of God. God is the opposite of Evil. Error is a type of Evil. 
Deliver is related to Function. 
Horrible <--Antonym--> Divine <--Synonym--> God <--Antonym--> Evil <--IsA-- Error 
Deliver <--RelatedTo--> Function 