Fix assertion failure in errorlogger.cpp (#3318)
This commit is contained in:
parent
5ffbfa4cf6
commit
3e6681e2b3
|
@ -272,8 +272,10 @@ static std::string executeAddon(const AddonInfo &addonInfo,
|
||||||
std::istringstream istr(result);
|
std::istringstream istr(result);
|
||||||
std::string line;
|
std::string line;
|
||||||
while (std::getline(istr, line)) {
|
while (std::getline(istr, line)) {
|
||||||
if (line.compare(0,9,"Checking ", 0, 9) != 0 && !line.empty() && line[0] != '{')
|
if (line.compare(0,9,"Checking ", 0, 9) != 0 && !line.empty() && line[0] != '{') {
|
||||||
|
result.erase(result.find_last_not_of('\n') + 1, std::string::npos); // Remove trailing newlines
|
||||||
throw InternalError(nullptr, "Failed to execute '" + pythonExe + " " + args + "'. " + result);
|
throw InternalError(nullptr, "Failed to execute '" + pythonExe + " " + args + "'. " + result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Valid results
|
// Valid results
|
||||||
|
|
Loading…
Reference in New Issue