Merge Consta's 'bugfix/797045' into stable.

This commit is contained in:
John Ralls 2024-09-28 13:54:38 -07:00
commit 4f610eb2bc

View File

@ -708,7 +708,7 @@ GncDbiBackend<Type>::session_begin (QofSession* session, const char* new_uri,
else if (m_exists)
{
PERR ("Unable to connect to database '%s'\n", uri.dbname());
set_error (ERR_BACKEND_SERVER_ERR);
set_error (ERR_BACKEND_CANT_CONNECT);
dbi_conn_close(conn);
LEAVE("Error");
return;