diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-06 07:26:46 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-06 07:26:46 +0200 |
commit | 5931c50a44a68384fe5d0101570db91fb6173095 (patch) | |
tree | 5855f86ce5e76045e0aae529e9dae6223ba245e8 /sc | |
parent | 273799b9c33b6657ac9b2e6217038a2f30b843ee (diff) |
improve error message for missing csv files
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 8e3c27d6b49b..3e80c374fab1 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -76,7 +76,9 @@ void loadFile(const rtl::OUString& aFileName, std::string& aContent) rtl::OString aOFileName = rtl::OUStringToOString(aFileName, RTL_TEXTENCODING_UTF8); std::ifstream aFile(aOFileName.getStr()); - CPPUNIT_ASSERT_MESSAGE("could not open csv file", aFile); + rtl::OStringBuffer aErrorMsg("Could not open csv file: "); + aErrorMsg.append(aOFileName); + CPPUNIT_ASSERT_MESSAGE(aErrorMsg.getStr(), aFile); std::ostringstream aOStream; aOStream << aFile.rdbuf(); aFile.close(); |