From 03cebb9a7f94125db823c6adb2795645cb051fe8 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 7 Nov 2009 20:45:34 -0500 Subject: create a better error message --- Source/cmSystemTools.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v0.12