edit error catch