mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
work on improving error messages
This commit is contained in:
@ -121,6 +121,8 @@ struct NostrFilter {
|
||||
explicit NostrFilter(const tao::json::value &filterObj, uint64_t maxFilterLimit) {
|
||||
uint64_t numMajorFields = 0;
|
||||
|
||||
if (!filterObj.is_object()) throw herr("provided filter is not an object");
|
||||
|
||||
for (const auto &[k, v] : filterObj.get_object()) {
|
||||
if (v.is_array() && v.get_array().size() == 0) {
|
||||
neverMatch = true;
|
||||
|
Reference in New Issue
Block a user