Hi Community! I was initially following the https://github.com/nestjs/nest/tree/master/sample/18-context/src example to build a standalone cron in NestJS + trying to enhance it with a custom filter
example service I've built
import { Injectable } from '@nestjs/common';
import {MyWorkerExceptionFilter} from './'
@Injectable()
@UseFilters(MyWorkerExceptionFilter)
export class AppService {
getHello(): string {
throw new Error('')
// return 'Hello world!';
}
}
However, the filter doesn't seems to be able to catch errors at at all!
Was @UseFilters designed to be used on controllers/module config only, without support on ad hoc service classes?
(note: was attempting to check the availability very fast, can provide an repro example once asked