relative paths: another fix for {code}

This commit is contained in:
Daniel Marjamäki 2018-11-18 16:15:09 +01:00
parent 982f7dc2b3
commit f2b26a488a
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ std::string ErrorLogger::ErrorMessage::toString(bool verbose, const std::string
endl = "\r\n";
else
endl = "\r";
findAndReplace(text, "{code}", readCode(fileLocation.getfile(), fileLocation.line, fileLocation.col, endl));
findAndReplace(text, "{code}", readCode(fileLocation.getOrigFile(), fileLocation.line, fileLocation.col, endl));
}
result += '\n' + text;
}