MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / extractQueryDiagnostics

Function extractQueryDiagnostics

src/utils/xcodebuild-error-utils.ts:11–21  ·  view source on GitHub ↗
(rawOutput: string)

Source from the content-addressed store, hash-verified

9}
10
11export function extractQueryDiagnostics(rawOutput: string): BasicDiagnostics {
12 const parsed = parseXcodebuildErrorMessage(rawOutput);
13 if (parsed) {
14 return createBasicDiagnostics({ errors: [parsed] });
15 }
16
17 const originalLines = nonEmptyLines(rawOutput);
18 return createBasicDiagnostics({
19 errors: originalLines.length > 0 ? originalLines : ['Unknown error'],
20 });
21}
22
23export function formatQueryError(rawOutput: string): string {
24 const messages = extractQueryErrorMessages(rawOutput);

Calls 3

createBasicDiagnosticsFunction · 0.90
nonEmptyLinesFunction · 0.90

Tested by

no test coverage detected