From 425d5827d31e7cfa190e795da22532554c260804 Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 17 Mar 2004 10:26:32 +0000 Subject: [PATCH] Changed error messages to use debug library. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@972 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_db.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_db.cpp b/src/zm_db.cpp index 7187d5975..732bbae11 100644 --- a/src/zm_db.cpp +++ b/src/zm_db.cpp @@ -28,17 +28,17 @@ void zmDbConnect( const char *user, const char*pass ) { if ( !mysql_init( &dbconn ) ) { - fprintf( stderr, "Can't initialise structure: %s\n", mysql_error( &dbconn ) ); + Error(( "Can't initialise structure: %s", mysql_error( &dbconn ) )); exit( mysql_errno( &dbconn ) ); } if ( !mysql_real_connect( &dbconn, ZM_DB_SERVER, user, pass, 0, 0, 0, 0 ) ) { - fprintf( stderr, "Can't connect to server: %s\n", mysql_error( &dbconn ) ); + Error(( "Can't connect to server: %s", mysql_error( &dbconn ) )); exit( mysql_errno( &dbconn ) ); } if ( mysql_select_db( &dbconn, ZM_DB_NAME ) ) { - fprintf( stderr, "Can't select database: %s\n", mysql_error( &dbconn ) ); + Error(( "Can't select database: %s", mysql_error( &dbconn ) )); exit( mysql_errno( &dbconn ) ); } }