Glad you resolved it your own.
In this context would more error messages be helpful?
We could log out the connection information when the connection fails eg
server name + port
username
workspace name
I don’t think it would be sensible to plain text log the password
Is the error we get back from the Perforce server. There might be a security setting on the Perforce server to force a different username eg “unknown user” but also that might be considered a security risk.