Fix error message to display input instead of result

This commit is contained in:
Daniel Lemire 2026-01-19 20:36:29 -05:00 committed by GitHub
parent 64a68590fd
commit 71ab1cce81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ int main() {
std::cout << "parsed the number " << result << std::endl;
return EXIT_SUCCESS;
}
std::cerr << "failed to parse " << result << std::endl;
std::cerr << "failed to parse " << input << std::endl;
return EXIT_FAILURE;
}
```