MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / formatError

Function formatError

code-scan-action/src/main.ts:55–57  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

53 'Fork PR scanning requires maintainer approval. See PR comment for options.';
54
55function formatError(error: unknown): string {
56 return error instanceof Error ? error.message : String(error);
57}
58
59const DEFAULT_MINIMUM_SEVERITY = 'medium';
60

Callers 7

loadGuidanceFunction · 0.70
authenticateWithOidcFunction · 0.70
fetchBaseBranchFunction · 0.70
parseScanOutputFunction · 0.70
postFallbackCommentsFunction · 0.70
emitSarifOutputFunction · 0.70
runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…