* @param {Error} error * @returns {void}
(config)
| 24 | * @returns {void} |
| 25 | */ |
| 26 | function printNetworkError(config) { |
| 27 | console.log(config); |
| 28 | console.log(`URL: `.yellow + config.url); |
| 29 | console.log(`Method: `.yellow + config.method.toUpperCase()); |
| 30 | if (config.data) { |
| 31 | console.log(`Data: `.yellow); |
| 32 | printObject(config.data); |
| 33 | } |
| 34 | } |
| 35 | /** |
| 36 | * @param {Error} error |
| 37 | * @param {Array<{message: string}>} [error.messages] |
no test coverage detected