(code: T)
| 185 | } |
| 186 | |
| 187 | export function formatRuntimeErrorCode<T extends number = RuntimeErrorCode>(code: T): string { |
| 188 | // Error code might be a negative number, which is a special marker that instructs the logic to |
| 189 | // generate a link to the error details page on angular.io. |
| 190 | // We also prepend `0` to non-compile-time errors. |
| 191 | return `NG0${Math.abs(code)}`; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Called to format a runtime error. |
no outgoing calls
no test coverage detected
searching dependent graphs…