[sword-svn] r2442 - trunk/utilities

scribe at crosswire.org scribe at crosswire.org
Sun Aug 16 13:50:33 MST 2009


Author: scribe
Date: 2009-08-16 13:50:32 -0700 (Sun, 16 Aug 2009)
New Revision: 2442

Modified:
   trunk/utilities/installmgr.cpp
Log:
utilities/installmgr
included debug output during lookup of sword library install path
early bail if we don't have a validily configured system for sword (thanks ghellings)


Modified: trunk/utilities/installmgr.cpp
===================================================================
--- trunk/utilities/installmgr.cpp	2009-08-12 03:41:40 UTC (rev 2441)
+++ trunk/utilities/installmgr.cpp	2009-08-16 20:50:32 UTC (rev 2442)
@@ -297,13 +297,13 @@
 
 int main(int argc, char **argv) {
 
+	SWLog::getSystemLog()->setLogLevel(SWLog::LOG_DEBUG);
+
 	init();
 
-	SWLog::getSystemLog()->setLogLevel(SWLog::LOG_DEBUG);
-
 	cout << "\n";
 
-	if (argc < 2)
+	if (argc < 2 || !mgr->config)
 		usage(*argv);
 
 	switch (argv[1][1]) {




More information about the sword-cvs mailing list