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

Method compileError

core/session.ts:452–467  ·  view source on GitHub ↗
(err: Error | string, path?: string, actionTarget?: dataform.ITarget)

Source from the content-addressed store, hash-verified

450
451 }
452 public compileError(err: Error | string, path?: string, actionTarget?: dataform.ITarget) {
453 const fileName = path || utils.getCallerFile(this.rootDir) || __filename;
454
455 const compileError = dataform.CompilationError.create({
456 fileName,
457 actionName: !!actionTarget ? targetAsReadableString(actionTarget) : undefined,
458 actionTarget
459 });
460 if (typeof err === "string") {
461 compileError.message = err;
462 } else {
463 compileError.message = err.message;
464 compileError.stack = err.stack;
465 }
466 this.graphErrors.compilationErrors.push(compileError);
467 }
468
469 public compile(): dataform.CompiledGraph {
470 this.actions.push(...this.tests);

Callers 15

sqlxActionMethod · 0.95
resolveMethod · 0.95
compileGraphChunkMethod · 0.95
checkCircularityMethod · 0.95
isUniqueActionMethod · 0.95
compileMethod · 0.80
validateQueryStringFunction · 0.80

Calls 3

targetAsReadableStringFunction · 0.90
createMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected