throw herr, not const char*

This commit is contained in:
Doug Hoyte
2024-09-05 15:07:02 -04:00
parent 3358e5e0ff
commit 55fa4dc032

View File

@ -40,7 +40,7 @@ struct FilterSetBytes {
}
std::string at(size_t n) const {
if (n >= items.size()) throw("FilterSetBytes access out of bounds");
if (n >= items.size()) throw herr("FilterSetBytes access out of bounds");
auto &item = items[n];
return buf.substr(item.offset, item.size);
}
@ -93,7 +93,7 @@ struct FilterSetUint {
}
uint64_t at(size_t n) const {
if (n >= items.size()) throw("FilterSetBytes access out of bounds");
if (n >= items.size()) throw herr("FilterSetBytes access out of bounds");
return items[n];
}