MCPcopy
hub / github.com/di-sukharev/opencommit / getErrorPrefix

Function getErrorPrefix

out/cli.cjs:66406–66423  ·  view source on GitHub ↗
({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled })

Source from the content-addressed store, hash-verified

66404 if (signal !== void 0) {
66405 return signal;
66406 }
66407 return signals.find((signalA) => signalA.number === number);
66408};
66409var signalsByNumber = getSignalsByNumber();
66410
66411// node_modules/execa/lib/error.js
66412var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
66413 if (timedOut) {
66414 return `timed out after ${timeout} milliseconds`;
66415 }
66416 if (isCanceled) {
66417 return "was canceled";
66418 }
66419 if (errorCode !== void 0) {
66420 return `failed with ${errorCode}`;
66421 }
66422 if (signal !== void 0) {
66423 return `was killed with ${signal} (${signalDescription})`;
66424 }
66425 if (exitCode !== void 0) {
66426 return `failed with exit code ${exitCode}`;

Callers 1

makeErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…