Skip to content

Commit

Permalink
Merge pull request #20 from ediweissmann/master
Browse files Browse the repository at this point in the history
ref #6 Nicer error message including failure code, helps with trouble…
  • Loading branch information
citronneur authored Nov 7, 2016
2 parents f5fabea + 9765e40 commit 7f88b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/protocol/x224.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ Client.prototype.recvConnectionConfirm = function(s) {
var message = serverConnectionConfirm().read(s);

if(message.obj.protocolNeg.obj.type.value == NegotiationType.TYPE_RDP_NEG_FAILURE) {
throw new error.ProtocolError('NODE_RDP_PROTOCOL_X224_NEG_FAILURE');
throw new error.ProtocolError('NODE_RDP_PROTOCOL_X224_NEG_FAILURE',
'Failure code:' + message.obj.protocolNeg.obj.result.value + " (see https://msdn.microsoft.com/en-us/library/cc240507.aspx)");
}

if(message.obj.protocolNeg.obj.type.value == NegotiationType.TYPE_RDP_NEG_RSP) {
Expand Down

0 comments on commit 7f88b51

Please sign in to comment.