MCPcopy
hub / github.com/vercel/hyper / pushError

Function pushError

bin/yarn-standalone.js:48703–48719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48701 const human = `${info.name}@${info.version}`;
48702
48703 const pushError = msg => {
48704 const ref = info._reference;
48705
48706 if (ref && ref.optional) {
48707 ref.ignore = true;
48708 ref.incompatible = true;
48709
48710 reporter.info(`${human}: ${msg}`);
48711 if (!didIgnore) {
48712 reporter.info(reporter.lang('optionalCompatibilityExcluded', human));
48713 didIgnore = true;
48714 }
48715 } else {
48716 reporter.error(`${human}: ${msg}`);
48717 didError = true;
48718 }
48719 };
48720
48721 const os = info.os,
48722 cpu = info.cpu,

Callers 1

checkOneFunction · 0.85

Calls 3

infoMethod · 0.45
langMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected