Author: rachel Date: 2007-07-16 18:12:17 +0100 (Mon, 16 Jul 2007) New Revision: 247 Modified: trunk/src/cash/init.cxx Log: create directories before opening database Modified: trunk/src/cash/init.cxx =================================================================== --- trunk/src/cash/init.cxx 2007-07-16 16:21:03 UTC (rev 246) +++ trunk/src/cash/init.cxx 2007-07-16 17:12:17 UTC (rev 247) @@ -194,6 +194,18 @@ int count=0; Db_Sqlite3 db; + + // Create directories + + if (!areDirsCreated()) + { + std::cout << "Creating Dirs" << endl; + if (!create_dirs()) + { + throw runtime_error("Cannot create Dirs"); + } + } + db.open(); // @@ -246,17 +258,6 @@ db.Exec(sql); } - // Create directories - - if (!areDirsCreated()) - { - std::cout << "Creating Dirs" << endl; - if (!create_dirs()) - { - throw runtime_error("Cannot create Dirs"); - } - } - count=0; // read issuer details from DB _______________________________________________ freedmoney-svn mailing list freedmoney-svn@freedmoney.org http://www.freedmoney.org/mailman/listinfo/freedmoney-svn --- end forwarded text -- ----------------- R. A. Hettinga <mailto: rah@ibuc.com> The Internet Bearer Underwriting Corporation <http://www.ibuc.com/> 44 Farquhar Street, Boston, MA 02131 USA "... however it may deserve respect for its usefulness and antiquity, [predicting the end of the world] has not been found agreeable to experience." -- Edward Gibbon, 'Decline and Fall of the Roman Empire'
participants (1)
-
FreeDMoney SVN