Use catch in promise example