[65567] trunk/base/src/cregistry/registry.c
raimue at macports.org
raimue at macports.org
Sat Mar 27 19:11:30 PDT 2010
Revision: 65567
http://trac.macports.org/changeset/65567
Author: raimue at macports.org
Date: 2010-03-27 19:11:30 -0700 (Sat, 27 Mar 2010)
Log Message:
-----------
cregistry: Include error code in error message
Modified Paths:
--------------
trunk/base/src/cregistry/registry.c
Modified: trunk/base/src/cregistry/registry.c
===================================================================
--- trunk/base/src/cregistry/registry.c 2010-03-28 01:47:35 UTC (rev 65566)
+++ trunk/base/src/cregistry/registry.c 2010-03-28 02:11:30 UTC (rev 65567)
@@ -76,11 +76,12 @@
errPtr->code = REG_SQLITE_ERROR;
errPtr->free = (reg_error_destructor*)sqlite3_free;
if (query == NULL) {
- errPtr->description = sqlite3_mprintf("sqlite error: %s",
- sqlite3_errmsg(db));
+ errPtr->description = sqlite3_mprintf("sqlite error: %s (%d)",
+ sqlite3_errmsg(db), sqlite3_errcode(db));
} else {
- errPtr->description = sqlite3_mprintf("sqlite error: %s while "
- "executing query: %s", sqlite3_errmsg(db), query);
+ errPtr->description = sqlite3_mprintf("sqlite error: %s (%d) while "
+ "executing query: %s", sqlite3_errmsg(db), sqlite3_errcode(db),
+ query);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100327/a82c2327/attachment.html>
More information about the macports-changes
mailing list