(err: Error | string, path?: string, actionTarget?: dataform.ITarget)
| 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); |
no test coverage detected