comparison runner/main.cpp @ 24:18c42fbc1335

* Various fixes: ensure CSV feature writer closes files when finished with (rather than at end of run) to avoid running out of fds; bail properly with an exception with CSV writer can't write to output file; and other minor things
author Chris Cannam
date Tue, 08 Sep 2009 16:51:24 +0000
parents 4ab7c925f7ac
children 102bb1729184
comparison
equal deleted inserted replaced
23:1a9ad8f3a98f 24:18c42fbc1335
726 try { 726 try {
727 manager.extractFeatures(*i); 727 manager.extractFeatures(*i);
728 } catch (const std::exception &e) { 728 } catch (const std::exception &e) {
729 cerr << "ERROR: Failed to process file \"" << i->toStdString() 729 cerr << "ERROR: Failed to process file \"" << i->toStdString()
730 << "\": " << e.what() << endl; 730 << "\": " << e.what() << endl;
731 cerr << "NOTE: If you want to continue with processing any further files after an" << endl
732 << "error like this, use the --force option" << endl;
731 if (force) { 733 if (force) {
732 // print a note only if we have more files to process 734 // print a note only if we have more files to process
733 QStringList::const_iterator j = i; 735 QStringList::const_iterator j = i;
734 if (++j != sources.end()) { 736 if (++j != sources.end()) {
735 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl; 737 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl;