Fixed printing of wrong file names

In multiple samples when a file didn't exist, it printed the first file as being the offending argument, regardless of which actually was.
This commit is contained in:
Caleb Leak
2019-02-09 20:55:54 -08:00
committed by Romain Guy
parent 32287aea7f
commit d2f8fa5a36
7 changed files with 7 additions and 7 deletions

View File

@@ -337,7 +337,7 @@ int main(int argc, char* argv[]) {
for (int i = option_index; i < argc; i++) {
utils::Path filename = argv[i];
if (!filename.exists()) {
std::cerr << "file " << argv[option_index] << " not found!" << std::endl;
std::cerr << "file " << argv[i] << " not found!" << std::endl;
return 1;
}
g_filenames.push_back(filename);