-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
338f5c7
to
df94567
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM. The only case - hiding json parsing error. Old code reported such cases, new one hides actual error description.
|
||
return false; | ||
std::shared_ptr<velocypack::Builder> ParseArgs(std::string_view args) try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noexcept?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and BTW why hide possible velocypack exception?
input = input.get(kNumHashes); | ||
if (!input.isNumber<uint32_t>()) { | ||
IRS_LOG_ERROR( | ||
absl::StrCat(kNumHashes, " attribute must be uint32_t", kParseError)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absl::StrCat(kNumHashes, " attribute must be uint32_t", kParseError)); | |
absl::StrCat(kNumHashes, " attribute must be a positive number", kParseError)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.