Show
Ignore:
Timestamp:
03/25/07 15:22:10 (6 years ago)
Author:
ahu
Message:

fix ticket 82, webserver not verbose enough with errors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/session.cc

    r982 r991  
    395395 
    396396  if(s<0) 
    397     { 
    398       throw Exception(string("socket: ")+strerror(errno)); 
    399     } 
     397    throw Exception(string("socket: ")+strerror(errno)); 
    400398   
    401399  memset(&local,0,sizeof(local)); 
     
    427425    throw SessionException(string("Setsockopt failed: ")+strerror(errno)); 
    428426 
    429  
    430427  if(bind(s, (sockaddr*)&local,sizeof(local))<0) 
    431       throw SessionException("binding to port "+itoa(port)+string(": ")+strerror(errno)); 
     428      throw SessionException("binding to port "+itoa(port)+string(" on ")+localaddress+": "+strerror(errno)); 
    432429   
    433430  if(listen(s,128)<0)