fix #4467: login failure reports unknown error