Simple fix for name erasure.

This commit is contained in:
Daniel Lemire 2020-03-13 14:41:19 -04:00
parent 06c1dc3a29
commit fb15886a1c
1 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ int main (int argc, char *argv[]){
exit(1);
}
const char *filename = argv[1];
auto [p, error] = simdjson::padded_string::load(filename);
if (error) {
auto [p, err] = simdjson::padded_string::load(filename);
if (err) {
std::cerr << "Could not load the file " << filename << std::endl;
return EXIT_FAILURE;
}
@ -146,4 +146,4 @@ int main (int argc, char *argv[]){
}
return 0;
}
}