Improve error message.
This commit is contained in:
parent
e53ffdb101
commit
3c5c23aeec
@ -320,7 +320,7 @@ template <class T>
|
||||
Result<T> to_integer_safe(Slice str) {
|
||||
auto res = to_integer<T>(str);
|
||||
if ((PSLICE() << res) != str) {
|
||||
return Status::Error(PSLICE() << "Can't parse \"" << str << "\" as number");
|
||||
return Status::Error(PSLICE() << "Can't parse \"" << str << "\" as an integer");
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user