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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user