Edit error handling