Skip to content

Commit 3d636a7

Browse files
refactored
1 parent d0abbbf commit 3d636a7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

engine/syntax_error_logger.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ export class SyntaxErrorLogger {
1515

1616
deactivate() {
1717
if(this.activated && this.errors.length > 0){
18-
fs.writeFileSync(path.join(this.outputDir, "syntaxErrors.md"), "## Function(s) not found: \n - ", {flag: "a"});
19-
let ending = "\n You can find all supported functions and how to use them [here](https://github.com/devonfw-tutorials/tutorials/wiki/Functions)."
20-
fs.writeFileSync(path.join(this.outputDir, "syntaxErrors.md"), this.errors.join("\n - ") + "\n" + ending + "\n", {flag: "a"});
18+
fs.writeFileSync(path.join(this.outputDir, "syntaxErrors.md"),
19+
"## Function(s) not found: \n - "
20+
+ this.errors.join("\n - ")
21+
+ "\n \n You can find all supported functions and how to use them [here](https://github.com/devonfw-tutorials/tutorials/wiki/Functions).\n"
22+
, {flag: "a"});
2123
this.activated = false;
2224
}
2325
}

0 commit comments

Comments
 (0)