FreeRDP/FreeRDP — pull request #581 by ArvidNorr (2012-05-07 11:30:45+00:00)
Title: Errorcode

During startup of a new connection in Freerdp many things can go wrong, such as DNS error,
connection failure, authentication error etc. I think there should be a way of getting a detailed error code from Freerdp. From what I have seen only true or false are returned. Freerdp print out errors on the screen but these messages are not readable from other software. This branch stores the error code in a variable. There are many ways of returning an error code. This suggestion does not mean that the interface to Freerdp must be changed.

There is also a branch of XRDP (https://github.com/ArvidNorr/xrdp)
(branch freerdpconnecterror) where you can see how the errorcode can be used in XRDP.