summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-08 01:45:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-08 01:45:34 (GMT)
commit03cebb9a7f94125db823c6adb2795645cb051fe8 (patch)
treef0a67e50b303398df19c7635622b5492c153bd48
parent3d1afdee4a0efaf056dbd0581a5e929c91d0f4d7 (diff)
downloadCMake-03cebb9a7f94125db823c6adb2795645cb051fe8.zip
CMake-03cebb9a7f94125db823c6adb2795645cb051fe8.tar.gz
CMake-03cebb9a7f94125db823c6adb2795645cb051fe8.tar.bz2
create a better error message
-rw-r--r--Source/cmSystemTools.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 49a64e7..5fcadda 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1823,7 +1823,11 @@ bool cmSystemTools::CreateTar(const char* outFileName,
int wlen = archive_write_data(a, buff, len);
if(wlen != len)
{
- cmSystemTools::Error("Problem with archive_write_data:",
+ 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)
);
return false;