God is not offended by our cries of despair.
Jonah created a mess for himself by being directly disobedient to what God told him to do. He cried to God from the literal depths of despair, as his only means of salvation. In His mercy and goodness God was willing to deliver Jonah from the consequences he created.