Skip to content

Commit f3cb99b

Browse files
authored
fix: fix description of the injection token PROPAGATE_ERROR_TO_SERVER (#20107)
Aligned the injection token's description it with the real injection token name. The previous name-vs-description mismatch was misleading and caused harder troubleshooting when an error happened: ``` Internal server error: NullInjectorError: No provider for InjectionToken PROPAGATE_ERROR_RESPONSE! ``` It was hard to search/find it in the codebase, because there is no such injection token like `PROPAGATE_ERROR_RESPONSE`, but only `PROPAGATE_ERROR_TO_SERVER`.
1 parent 3f44edc commit f3cb99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: core-libs/setup/ssr/error-handling/error-response/propagate-error-to-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ import { InjectionToken } from '@angular/core';
1919
*/
2020
export const PROPAGATE_ERROR_TO_SERVER = new InjectionToken<
2121
(error: unknown) => void
22-
>('PROPAGATE_ERROR_RESPONSE');
22+
>('PROPAGATE_ERROR_TO_SERVER');

0 commit comments

Comments
 (0)