Skip to content

Example from examples/client.pl does not properly report connecntion to tls-only server #9

@dhyannataraj

Description

@dhyannataraj

When I am trying to connect by examples/client.pl to tls-only server it does not print proper error text

my $status = $Connection->Connect(hostname=>$server,
port=>$port);

if (!(defined($status)))
{
print "ERROR: Jabber server is down or connection was not allowed.\n";
print " ($!)\n";
exit(0);
}

it sais

ERROR: Jabber server is down or connection was not allowed.
()

You should either change $! to $Connection->GetErrorCode() or change behavior of SetErrorCode so it also put error code to $!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions