Fix the reporting of invalid static extended filters in the logger

This is a regression caused by the re-factoring necessary
to support the new static filtering parser code.
This commit is contained in:
Raymond Hill 2020-07-12 13:00:18 -04:00
parent 924e70280b
commit bf600d77a1
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -252,6 +252,12 @@
if ( parser.category !== parser.CATStaticExtFilter ) { return false; }
if ( (parser.flavorBits & parser.BITFlavorUnsupported) !== 0 ) {
const who = writer.properties.get('assetKey') || '?';
µb.logger.writeOne({
realm: 'message',
type: 'error',
text: `Invalid extended filter in ${who}: ${parser.raw}`
});
return true;
}