MCPcopy Create free account
hub / github.com/dataform-co/dataform / printCompiledGraphErrors

Function printCompiledGraphErrors

cli/console.ts:256–268  ·  view source on GitHub ↗
(graphErrors: dataform.IGraphErrors, quietCompilation: boolean)

Source from the content-addressed store, hash-verified

254}
255
256export function printCompiledGraphErrors(graphErrors: dataform.IGraphErrors, quietCompilation: boolean) {
257 if (graphErrors.compilationErrors && graphErrors.compilationErrors.length > 0) {
258 printError("Compilation errors:", 1);
259 graphErrors.compilationErrors.forEach(compileError => {
260 writeStdErr(
261 `${calloutOutput(compileError.fileName)}: ${errorOutput(
262 quietCompilation ? (compileError.message + " " + formatStackTraceForQuietCompilation(compileError) || compileError.stack) : (compileError.stack || compileError.message)
263 )}`,
264 1
265 );
266 });
267 }
268}
269
270export function printTestResult(testResult: dataform.ITestResult) {
271 writeStdOut(

Callers 2

compileAndPrintFunction · 0.90
runCliFunction · 0.90

Calls 5

printErrorFunction · 0.85
writeStdErrFunction · 0.85
calloutOutputFunction · 0.85
errorOutputFunction · 0.85

Tested by

no test coverage detected