* Determines the error reporting endpoint which should be used. * If changing this URL, keep `docs/spec/amp-errors.md` in sync. * @return {string} error reporting endpoint URL.
()
| 369 | * @return {string} error reporting endpoint URL. |
| 370 | */ |
| 371 | function chooseReportingUrl_() { |
| 372 | return Math.random() < REPORT_ERROR_TO_BETA_ENDPOINT_THRESHOLD |
| 373 | ? urls.betaErrorReporting |
| 374 | : urls.errorReporting; |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * Passes the given error data to either server or viewer. |
no outgoing calls
no test coverage detected