(error, url)
| 28 | return false; |
| 29 | } |
| 30 | #errorHandler(error, url) { |
| 31 | if (error.response) { |
| 32 | console.log("[EMBY-API]: " + this.#httpErrorMessageHandler(error)); |
| 33 | } else { |
| 34 | console.log("[EMBY-API]", { |
| 35 | ErrorAt: this.#getErrorLineNumber(error), |
| 36 | ErrorLines: this.#getErrorLineNumbers(error), |
| 37 | Message: error.message, |
| 38 | url: url, |
| 39 | // StackTrace: this.#getStackTrace(error), |
| 40 | }); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | #httpErrorMessageHandler(error) { |
| 45 | let message = ""; |
no test coverage detected