]> git.lyx.org Git - lyx.git/commitdiff
Add warning.
authorRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 14:00:56 +0000 (14:00 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 4 Nov 2010 14:00:56 +0000 (14:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36055 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index 225bd09a3c28a96f2ce03ffaf377e0c86f35af5e..57662c14dd60e5620552cc9cb9fcf2f163b5e5ba 100644 (file)
@@ -1294,7 +1294,7 @@ def revert_includeonly(document):
             return
         j = find_end_of(document.header, i, "\\begin_includeonly", "\\end_includeonly")
         if j == -1:
             return
         j = find_end_of(document.header, i, "\\begin_includeonly", "\\end_includeonly")
         if j == -1:
-            # this should not happen
+            document.warning("Unable to find end of includeonly section!!")
             break
         document.header[i : j + 1] = []
 
             break
         document.header[i : j + 1] = []