[sword-svn] r2400 - trunk/utilities

dmsmith at crosswire.org dmsmith at crosswire.org
Mon May 11 05:09:17 MST 2009


Author: dmsmith
Date: 2009-05-11 05:09:17 -0700 (Mon, 11 May 2009)
New Revision: 2400

Modified:
   trunk/utilities/osis2mod.cpp
Log:
improved osis2mod diagnostic


Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2009-05-11 01:21:41 UTC (rev 2399)
+++ trunk/utilities/osis2mod.cpp	2009-05-11 12:09:17 UTC (rev 2400)
@@ -699,9 +699,12 @@
 				verseDepth      = 0;
 
 				inCanonicalOSISBook = isOSISAbbrev(token.getAttribute("osisID"));
+				if (!inCanonicalOSISBook) {
+					cout << "WARNING(V11N): New book is " << token.getAttribute("osisID") << " and is not in " << v11n << " versification, ignoring" << endl;
+				}
 #ifdef DEBUG
-				if (debug & DEBUG_OTHER) {
-					cout << "DEBUG(FOUND): Current book is " << currentVerse.getOSISRef() << (!inCanonicalOSISBook ? "not in versification, ignoring" : "") << endl;
+				else if (debug & DEBUG_OTHER) {
+					cout << "DEBUG(FOUND): New book is " << currentVerse.getOSISRef() << endl;
 				}
 #endif
 




More information about the sword-cvs mailing list