Improve error message.

This commit is contained in:
levlam 2020-12-26 20:24:55 +03:00
parent e53ffdb101
commit 3c5c23aeec

View File

@ -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;
}