From: arjen Date: Wed, 19 Feb 2003 09:54:47 +0000 (+0000) Subject: Print the query on cerr, along with the error message when X-Git-Tag: V0_0_5~15 X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=8db36f4b8d43162720e1273b386587f6409f4896;p=gnucomo.git Print the query on cerr, along with the error message when the query results in an error. --- diff --git a/src/include/database.h b/src/include/database.h index 4391b97..d77f7a2 100644 --- a/src/include/database.h +++ b/src/include/database.h @@ -8,7 +8,7 @@ *********************** ** FILE NAME : database.h ** SYSTEM NAME : -** VERSION NUMBER : $Revision: 1.5 $ +** VERSION NUMBER : $Revision: 1.6 $ ** ** DESCRIPTION : Classes to provide an abstract layer on the Gnucomo ** database. @@ -27,7 +27,11 @@ /***************************** $Log: database.h,v $ - Revision 1.5 2003-02-05 09:33:17 arjen + Revision 1.6 2003-02-19 09:54:47 arjen + Print the query on cerr, along with the error message when + the query results in an error. + + Revision 1.5 2003/02/05 09:33:17 arjen gnucomo_database::new_notification() retruns the id number of the newly created notification record. @@ -45,7 +49,7 @@ *****************************/ -/* static const char *RCSID = "$Id: database.h,v 1.5 2003-02-05 09:33:17 arjen Exp $"; */ +/* static const char *RCSID = "$Id: database.h,v 1.6 2003-02-19 09:54:47 arjen Exp $"; */ #include #include "gnucomo_config.h" @@ -95,6 +99,7 @@ public: else { std::cerr << "Database query error: " << db->ErrorMessage() << "\n"; + std::cerr << "Query: " << qry << "\n"; return -1; } }