[Cmake-commits] [cmake-commits] hoffman committed cmSystemTools.cxx 1.412 1.413

cmake-commits at cmake.org cmake-commits at cmake.org
Sat Nov 7 20:45:37 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14669

Modified Files:
	cmSystemTools.cxx 
Log Message:
create a better error message


Index: cmSystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmSystemTools.cxx,v
retrieving revision 1.412
retrieving revision 1.413
diff -C 2 -d -r1.412 -r1.413
*** cmSystemTools.cxx	8 Nov 2009 00:35:35 -0000	1.412
--- cmSystemTools.cxx	8 Nov 2009 01:45:34 -0000	1.413
***************
*** 1824,1828 ****
        if(wlen != len)
          { 
!         cmSystemTools::Error("Problem with archive_write_data:",
                               archive_error_string(a)
            );
--- 1824,1832 ----
        if(wlen != len)
          { 
!         cmOStringStream error;
!         error << "Problem with archive_write_data\n"
!               << "Tried to write  [" << len << "] bytes.\n"
!               << "archive_write_data wrote  [" << wlen << "] bytes.\n";
!         cmSystemTools::Error(error.str().c_str(),
                               archive_error_string(a)
            );



More information about the Cmake-commits mailing list