MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / createErrorResponse

Method createErrorResponse

lib/tooling/base-tool.ts:113–122  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

111 }
112
113 createErrorResponse(message: string): ToolResult {
114 return {
115 id: this.tool.id,
116 name: this.tool.name,
117 code: -1,
118 languageId: 'stderr',
119 stdout: [],
120 stderr: this.parseOutput(message),
121 };
122 }
123
124 // mostly copy&paste from base-compiler.js
125 findLibVersion(selectedLib: SelectedLibraryVersion, supportedLibraries: Record<string, OptionsHandlerLibrary>) {

Callers 15

runToolMethod · 0.95
runToolMethod · 0.80
runToolMethod · 0.80
runCompilerToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80
runToolMethod · 0.80

Calls 1

parseOutputMethod · 0.95

Tested by

no test coverage detected