docs: update documentation of setErrorHandler method

Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com>
This commit is contained in:
Radoslaw Wielonski
2021-12-08 15:11:07 +01:00
parent d2ad94df97
commit 0105e3cd64
+2 -2
View File
@@ -101,8 +101,8 @@ export type ServiceBuilder = {
/**
* Sets an additional errorHandler to run before the defaultErrorHandler.
*
* If we want to use only custom errorHandler without defaultErrorHandler we need to
* disable the defaultErrorHandler by invoking disableDefaultErrorHandler()
* For execution of only the custom error handler make sure to also invoke disableDefaultErrorHandler()
* otherwise the defaultErrorHandler is executed at the end of the error middleware chain.
*
* @param errorHandler - an error handler
*/