[PATCH openEuler-5.10 69/86] ipack: ipoctal: fix tty-registration error handling