MCPcopy
hub / github.com/Swatinem/rust-cache / reportError

Function reportError

src/utils.ts:8–16  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

6import fs from "fs";
7
8export function reportError(e: any) {
9 const { commandFailed } = e;
10 if (commandFailed) {
11 core.error(`Command failed: ${commandFailed.command}`);
12 core.error(commandFailed.stderr);
13 } else {
14 core.error(`${e.stack}`);
15 }
16}
17
18export async function getCmdOutput(
19 cmdFormat: string,

Callers 2

runFunction · 0.90
runFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected