This patch appends DB_PATH to the error message for failure in opening
the database file. Note that DB_PATH is not the SQLITE3 database file,
but the path prefix where the file is placed.
CC: Jaeyun Jung <jy1210.jung@samsung.com>
Signed-off-by: Wook Song <wook16.song@samsung.com>
rc = sqlite3_open (_path.c_str (), &_db);
if (rc != SQLITE_OK) {
- _E ("Failed to open database: %s (%d)", sqlite3_errmsg (_db), rc);
+ _E ("Failed to open database: %s (ret: %d, db_path_prefix: %s)",
+ sqlite3_errmsg (_db), rc, DB_PATH);
goto error;
}