⟩ Tell me while writing an error message what all things you need to take into consideration?
You need to take following things in consideration
☛ Don’t use negative words
☛ Clearly mention the error so that the user knows what to correct
☛ Give user a clue or link to solve the error
☛ Put the blame on yourself and not on the user