If Shiva is displeased, the Guru can save you; but if the Guru is displeased, not even Shiva can save you. Therefore seek refuge in the Guru with every means at your disposal.
शिवे क्रुद्धे गुरुस्त्राता गुरौ क्रुद्धे शिवो न हि । तस्मात् सर्वप्रयत्नेन श्रीगुरुं शरणं व्रजेत्
Source
The Guru Gita (Song of the Guru) is a 182-verse scripture from the Uttara Khanda of the Skanda Purana, presented as a dialogue in which Parvati asks Shiva to reveal the nature and glory of the Guru. Shiva teaches the guru-disciple relationship and the identity of Guru and Brahman.