mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-12 21:29:53 +08:00
Fixed messages
This commit is contained in:
parent
681eb1ea38
commit
0711006266
@ -39,13 +39,13 @@ int main()
|
|||||||
|
|
||||||
if (answer.ec != std::errc()) {
|
if (answer.ec != std::errc()) {
|
||||||
if (answer.ec == std::errc::invalid_argument) {
|
if (answer.ec == std::errc::invalid_argument) {
|
||||||
std::cerr << "could not convert to int for input: " << std::quoted(f) << "because of invalid arguement, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
std::cerr << "could not convert to int for input: " << std::quoted(f) << " because of invalid arguement, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
||||||
}
|
}
|
||||||
else if (answer.ec == std::errc::result_out_of_range) {
|
else if (answer.ec == std::errc::result_out_of_range) {
|
||||||
std::cerr << "could not convert to int for input: " << std::quoted(f) << "because it's out of range, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
std::cerr << "could not convert to int for input: " << std::quoted(f) << " because it's out of range, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
std::cerr << "could not convert to int for input: " << std::quoted(f) << "because of an unknown error, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
std::cerr << "could not convert to int for input: " << std::quoted(f) << " because of an unknown error, output: " << result << " , ptr: " << answer.ptr << std::endl;
|
||||||
}
|
}
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user