Errors: Support a filter to control which errors are reported

Fixes #335
Nothing seems to be using this. Get rid of it?