Subject: | How to find login errors is not documented. |
I see that you set $self->{errror} with information about the error. But it is not returned, nor is there anything about this value in the documentation.
Optionally, you could return the error as part of the return value from login() or use warn() to surface the error.
What surfaced this for me was I had to do a Data::Dumper of my $ucs object to find the error message of "Login failure: 500 Can't connect to server:443 (certificate verify failed)"