test request2mask() w/ non-existant fields

This commit is contained in:
Michael Davidsaver
2021-01-05 10:42:31 -08:00
parent b2b264ee9b
commit c159b9da1e
2 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ BitMask request2mask(const FieldDesc* desc, const Value& pvRequest)
}
if(!foundrequested)
throw std::runtime_error("pvRequest selects no fields");
throw std::runtime_error("Empty field selection");
if(ret.findSet(1)==ret.size()) {
// empty mask is wildcard