Format attempted test file/dir lookups more nicely in the error case
This commit is contained in:
parent
f30947cc75
commit
0fb533ffc5
|
@ -241,8 +241,8 @@ std::string TestApplication::testFilePath(const std::string &relativeTestFilePat
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw std::runtime_error("The test file \"" % relativeTestFilePath % "\" can not be located. Was looking under:"
|
throw std::runtime_error("The test file \"" % relativeTestFilePath % "\" can not be located. Was looking under:\n"
|
||||||
+ joinStrings(m_testFilesPaths, "\n", false, std::string(), relativeTestFilePath));
|
+ joinStrings(m_testFilesPaths, "\n", false, " - ", relativeTestFilePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -259,8 +259,8 @@ std::string TestApplication::testDirPath(const std::string &relativeTestDirPath)
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw std::runtime_error("The test directory \"" % relativeTestDirPath % "\" can not be located. Was looking under:"
|
throw std::runtime_error("The test directory \"" % relativeTestDirPath % "\" can not be located. Was looking under:\n"
|
||||||
+ joinStrings(m_testFilesPaths, "\n", false, std::string(), relativeTestDirPath));
|
+ joinStrings(m_testFilesPaths, "\n", false, " - ", relativeTestDirPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue