From 55fa4dc0321559dd72ebb249cc2ca574d6939d1b Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Thu, 5 Sep 2024 15:07:02 -0400 Subject: [PATCH] throw herr, not const char* --- src/filters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters.h b/src/filters.h index d9ee320..8bcb8e2 100644 --- a/src/filters.h +++ b/src/filters.h @@ -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]; }