From 5ffa2048f7d22e4f90268803016bdeeb226c5ec9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 20 Aug 2003 00:04:44 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2156 --- db/boinc_db.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/boinc_db.C b/db/boinc_db.C index b99d1322c5..58cde6be32 100644 --- a/db/boinc_db.C +++ b/db/boinc_db.C @@ -221,6 +221,8 @@ int boinc_db_insert_id() { void boinc_db_print_error(char* p) { if (mysql) { fprintf(stderr, "%s: Database error: %s\n", p, mysql_error(mysql)); + } else { + fprintf(stderr, "%s: Database error\n", p); } }