same about error handling