Ignore:
Timestamp:
28/04/2007 21:43:48 (5 years ago)
Author:
chris
Message:

Improve error messages when compare throws an exception. (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/bin/bbackupquery/BackupQueries.cpp

    r1597 r1600  
    17161716                                catch(BoxException &e) 
    17171717                                { 
    1718                                         printf("ERROR: (%d/%d) during file fetch and comparison for '%s'\n", 
    1719                                                 e.GetType(), 
    1720                                                 e.GetSubType(), 
    1721                                                 storePathDisplay.c_str()); 
     1718                                        BOX_ERROR("Failed to fetch and compare " 
     1719                                                "'" <<  
     1720                                                storePathDisplay.c_str() << 
     1721                                                "': error " << e.what() << 
     1722                                                " (" << e.GetType() << 
     1723                                                "/"  << e.GetSubType() << ")"); 
    17221724                                        rParams.mUncheckedFiles ++; 
     1725                                } 
     1726                                catch(std::exception &e) 
     1727                                { 
     1728                                        BOX_ERROR("Failed to fetch and compare " 
     1729                                                "'" <<  
     1730                                                storePathDisplay.c_str() << 
     1731                                                "': " << e.what()); 
    17231732                                } 
    17241733                                catch(...) 
    17251734                                {        
    1726                                         printf("ERROR: (unknown) during file fetch and comparison for '%s'\n", storePathDisplay.c_str()); 
     1735                                        BOX_ERROR("Failed to fetch and compare " 
     1736                                                "'" <<  
     1737                                                storePathDisplay.c_str() << 
     1738                                                "': unknown error"); 
    17271739                                        rParams.mUncheckedFiles ++; 
    17281740                                } 
Note: See TracChangeset for help on using the changeset viewer.