Add newline to error messages in LoadExternalFile

This commit is contained in:
Luke San Antonio 2016-06-14 22:17:40 -04:00
parent cdf4cb79ed
commit da8b5d148c

View File

@ -613,7 +613,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
std::string filepath = FindFile(paths, filename); std::string filepath = FindFile(paths, filename);
if (filepath.empty()) { if (filepath.empty()) {
if (err) { if (err) {
(*err) += "File not found : " + filename; (*err) += "File not found : " + filename + "\n";
} }
return false; return false;
} }
@ -621,7 +621,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
std::ifstream f(filepath.c_str(), std::ifstream::binary); std::ifstream f(filepath.c_str(), std::ifstream::binary);
if (!f) { if (!f) {
if (err) { if (err) {
(*err) += "File open error : " + filepath; (*err) += "File open error : " + filepath + "\n";
} }
return false; return false;
} }