change from warning to error for missing bin files

This commit is contained in:
Selmar Kok 2018-08-22 18:26:10 +02:00
parent fcdfc71ba6
commit cda38e03ed

View File

@ -1257,8 +1257,8 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
std::string filepath = FindFile(paths, filename, fs); std::string filepath = FindFile(paths, filename, fs);
if (filepath.empty() || filename.empty()) { if (filepath.empty() || filename.empty()) {
if (warn) { if (err) {
(*warn) += "File not found : " + filename + "\n"; (*err) += "File not found : " + filename + "\n";
} }
return false; return false;
} }