MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / logError

Function logError

packager/src/lib/reporting.js:100–103  ·  view source on GitHub ↗

* Similar to `logWarning`, but for messages that require the user to act.

(terminal: Terminal, format: string, ...args: Array<mixed>)

Source from the content-addressed store, hash-verified

98 * Similar to `logWarning`, but for messages that require the user to act.
99 */
100function logError(terminal: Terminal, format: string, ...args: Array<mixed>): void {
101 const str = util.format(format, ...args);
102 terminal.log('%s: %s', chalk.red('error'), str);
103}
104
105/**
106 * A reporter that does nothing. Errors and warnings will be swallowed, that

Callers 1

CameraRollView.jsFile · 0.50

Calls 1

logMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…