Add exception description; small whitespace fixes.
diff --git a/tests/test_exhaustive.py b/tests/test_exhaustive.py
index d8638e8..14a4b2d 100755
--- a/tests/test_exhaustive.py
+++ b/tests/test_exhaustive.py
@@ -130,7 +130,7 @@
                         try:
                             line = lines.next()
                         except StopIteration:
-                            raise Exception('')
+                            raise Exception('unexpected end of template: %s' % line)
                         if line == "'''\n":
                             break
                         else:
@@ -147,7 +147,7 @@
                         if not table.name in compiledTables:
                             for line in table:
                                 louis.compileString([table.name], line)
-                                compiledTables.append(table.name)
+                            compiledTables.append(table.name)
                     if not prevKey == 'table':
                         curTables = []
                     curTables.append(table)
@@ -176,4 +176,4 @@
         exit(1)
 
 if  __name__ =='__main__':
-    main()
\ No newline at end of file
+    main()