Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a84a744b authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "if db close() fails due to un-closed sql statements, print useful msg"

parents 883ad9e2 b4389023
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -1140,8 +1140,9 @@ public class SQLiteDatabase extends SQLiteClosable {
                }
            } else {
                // the statement is not yet closed. most probably programming error in the app.
                Log.w(TAG, "dbclose failed due to un-close()d SQL statements: " + msg);
                throw e;
                throw new SQLiteUnfinalizedObjectsException(
                        "close() on database: " + getPath() +
                        " failed due to un-close()d SQL statements: " + msg);
            }
        }
    }