(error: any, source: string | null)
| 113 | * the resolution process, which eventually failed. |
| 114 | */ |
| 115 | export function augmentRuntimeError(error: any, source: string | null): Error { |
| 116 | const tokenPath: string[] = error[NG_TOKEN_PATH]; |
| 117 | const errorCode = error[NG_RUNTIME_ERROR_CODE]; |
| 118 | const message = error[NG_RUNTIME_ERROR_MESSAGE] || error.message; |
| 119 | error.message = formatErrorMessage(message, errorCode, tokenPath, source); |
| 120 | return error; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Creates an initial RuntimeError instance when a problem is detected. |
no test coverage detected
searching dependent graphs…