Open coler-j opened 6 months ago
What is the difference between serviceErrorHandler
and errorHandler
serviceErrorHandler
was created to handle errors that happen during this.commander.parseAsync
as detailed in this PR, whereas errorHandler
is the general commander error handler and modifies how errors at the commander level are handled
Is there an existing issue for this?
Current behavior
When an error is raised
errorHandler
My output will be like:
The output starts with the error
Error: TEST
which is not formatted as it should be with my logger, and then the buffered logs continue afterwards...Minimum reproduction code
Command that returns an error
Expected behavior
Error is written with custom logger
Package
nest-commander
nest-commander-schematics
nest-commander-testing
Package version
3.12.5
Node.js version
20.11.1
In which operating systems have you tested?
Other
No response