Improve error message when SQL parser gets illegal character
Steve Howard [Sat, 10 Jul 2010 01:24:28 +0000 (18:24 -0700)]
Change-Id: Ife165361ebd75d558b311710e62abdfbdc355f1b

src/com/android/providers/downloads/Helpers.java

index 1e07d42..6bb5093 100644 (file)
@@ -780,7 +780,7 @@ public class Helpers {
             }
 
             // anything we don't recognize
-            throw new IllegalArgumentException("illegal character");
+            throw new IllegalArgumentException("illegal character: " + chars[mOffset]);
         }
 
         private static final boolean isIdentifierStart(char c) {