Patch from Scott McKellar; reasonable and non-intrusive diagnostic message in
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 28 May 2007 20:12:23 +0000 (20:12 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 28 May 2007 20:12:23 +0000 (20:12 +0000)
the case that we've been given on port or unix socket path to connect over.

http://list.georgialibraries.org/pipermail/open-ils-dev/2007-May/001109.html

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@920 9efc2488-bf62-4759-914b-345cdb29e865

src/libtransport/transport_session.c

index 1e685c7..c62306c 100644 (file)
@@ -171,6 +171,10 @@ int session_connect( transport_session* session,
                                session->sock_mgr, session->unix_path)) <= 0 ) 
                        return 0;
                }
+               else {
+                       osrfLogWarning( OSRF_LOG_MARK, "Can't open session: no port or unix path" );
+                       return 0;
+               }
        }
 
        if( session->component ) {