MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / printNetworkError

Function printNetworkError

lib/cliCommon.js:26–34  ·  view source on GitHub ↗

* @param {Error} error * @returns {void}

(config)

Source from the content-addressed store, hash-verified

24 * @returns {void}
25 */
26function 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]

Callers 1

printCliResultErrorFunction · 0.85

Calls 2

printObjectFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected