Include more information for out-of-range DB access

Bug: 34051652
Change-Id: I8b504ad4a5b0e12b9ad4496b4a1e2a30e8017971
diff --git a/src/com/android/calculator2/ExpressionDB.java b/src/com/android/calculator2/ExpressionDB.java
index 47d6813..fb7ee04 100644
--- a/src/com/android/calculator2/ExpressionDB.java
+++ b/src/com/android/calculator2/ExpressionDB.java
@@ -533,7 +533,8 @@
             position -= GAP;
         }
         if (position < 0) {
-            throw new AssertionError("Database access out of range");
+            throw new AssertionError("Database access out of range, index = " + index
+                    + " rel. pos. = " + position);
         }
         if (index < 0) {
             // Avoid using mAllCursor to read data that's far away from the current position,