Skip to content

Commit

Permalink
Report filter list of invalid filter in logger
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 10, 2023
1 parent d7b7dea commit 3c4c376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
if ( details.assetKey ) {
writer.properties.set('name', details.assetKey);
}
const assetName = details.assetKey ? details.assetKey : '?';
const expertMode =
details.assetKey !== this.userFiltersPath ||
this.hiddenSettings.filterAuthorMode !== false;
Expand Down Expand Up @@ -1031,7 +1032,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
logger.writeOne({
realm: 'message',
type: 'error',
text: `Invalid filter: ${parser.raw}`
text: `Invalid filter (${assetName}): ${parser.raw}`
});
continue;
}
Expand Down

0 comments on commit 3c4c376

Please sign in to comment.