mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-16 01:03:16 -05:00
[db] Log path to db on error, so it's easier to debug
This commit is contained in:
parent
0c9a23e8d2
commit
79b2cf4fd7
@ -454,7 +454,7 @@ cache_create(void)
|
|||||||
ret = sqlite3_open(g_db_path, &g_db_hdl);
|
ret = sqlite3_open(g_db_path, &g_db_hdl);
|
||||||
if (ret != SQLITE_OK)
|
if (ret != SQLITE_OK)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_CACHE, "Could not open cache database: %s\n", sqlite3_errmsg(g_db_hdl));
|
DPRINTF(E_LOG, L_CACHE, "Could not open '%s': %s\n", g_db_path, sqlite3_errmsg(g_db_hdl));
|
||||||
|
|
||||||
sqlite3_close(g_db_hdl);
|
sqlite3_close(g_db_hdl);
|
||||||
return -1;
|
return -1;
|
||||||
|
2
src/db.c
2
src/db.c
@ -5999,7 +5999,7 @@ db_perthread_init(void)
|
|||||||
ret = sqlite3_open(db_path, &hdl);
|
ret = sqlite3_open(db_path, &hdl);
|
||||||
if (ret != SQLITE_OK)
|
if (ret != SQLITE_OK)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_DB, "Could not open database: %s\n", sqlite3_errmsg(hdl));
|
DPRINTF(E_LOG, L_DB, "Could not open '%s': %s\n", db_path, sqlite3_errmsg(hdl));
|
||||||
|
|
||||||
sqlite3_close(hdl);
|
sqlite3_close(hdl);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user