From: James P. T. <jpt...@us...> - 2008-05-23 13:50:51
|
Update of /cvsroot/aaf/AAF/Utilities/AAFAnalyzer/AAFAnalyzer In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv8980 Modified Files: AAFAnalyzerMain.cpp Log Message: exceptions messags to cerr not cout Index: AAFAnalyzerMain.cpp =================================================================== RCS file: /cvsroot/aaf/AAF/Utilities/AAFAnalyzer/AAFAnalyzer/AAFAnalyzerMain.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** AAFAnalyzerMain.cpp 22 May 2008 08:30:22 -0000 1.39 --- AAFAnalyzerMain.cpp 23 May 2008 13:50:55 -0000 1.40 *************** *** 1093,1137 **** catch ( const Usage& ex ) { ! cout << ex << endl; } catch ( const AxExHResult& ex ) { ! wcout << L"Error: " << ex.widewhat() << endl; } catch ( const RequirementXMLException& ex ) { ! wcout << ex.widewhat() << endl; } catch ( const RequirementMismatchException& ex ) { ! wcout << ex.widewhat() << endl; } catch ( const RequirementRegistryException& ex ) { ! wcout << ex.widewhat() << endl; } catch ( const TestRegistryException& ex ) { ! wcout << ex.widewhat() << endl; } catch ( const EPCastException& ex ) { ! wcout << ex.widewhat() << endl; } catch ( const AxEx& ex ) { ! wcout << L"Error: " << ex.widewhat() << endl; } catch ( const AnalyzerException& ex ) { ! wcout << L"Error: " << ex.widewhat() << endl; } catch ( const exception& ex ) { ! cout << "Error: " << ex.what() << endl; } catch ( ... ) { ! wcout << L"Error: unhandled exeption" << endl; } --- 1093,1137 ---- catch ( const Usage& ex ) { ! cerr << ex << endl; } catch ( const AxExHResult& ex ) { ! wcerr << L"Error: " << ex.widewhat() << endl; } catch ( const RequirementXMLException& ex ) { ! wcerr << ex.widewhat() << endl; } catch ( const RequirementMismatchException& ex ) { ! wcerr << ex.widewhat() << endl; } catch ( const RequirementRegistryException& ex ) { ! wcerr << ex.widewhat() << endl; } catch ( const TestRegistryException& ex ) { ! wcerr << ex.widewhat() << endl; } catch ( const EPCastException& ex ) { ! wcerr << ex.widewhat() << endl; } catch ( const AxEx& ex ) { ! wcerr << L"Error: " << ex.widewhat() << endl; } catch ( const AnalyzerException& ex ) { ! wcerr << L"Error: " << ex.widewhat() << endl; } catch ( const exception& ex ) { ! cerr << "Error: " << ex.what() << endl; } catch ( ... ) { ! wcerr << L"Error: unhandled exeption" << endl; } |