Changeset 9675


Ignore:
Timestamp:
12/13/09 23:18:48 (2 years ago)
Author:
szabgab
Message:

remove unnecessary error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Debug-Client/lib/Debug/Client.pm

    r9669 r9675  
    7070             %args); 
    7171 
    72     die("Usage: $0 hostname portno") unless ($args{host} =~ /\w+/ && $args{port} =~ /^\d+$/); 
    73  
    7472    # Open the socket the debugger will connect to. 
    7573    my $sock = IO::Socket::INET->new( 
     
    7977                   Listen    => SOMAXCONN, 
    8078                   Reuse     => 1); 
    81     $sock or die "no socket :$!"; 
    82     #print "listening on $args{host}:$args{port}\n"; 
     79    $sock or die "Could not connect to '$args{host}' '$args{port}' no socket :$!"; 
     80    logger("listening on '$args{host}:$args{port}'"); 
    8381    $self->{sock} = $sock; 
    8482 
Note: See TracChangeset for help on using the changeset viewer.