add error-catch line