Skip to content

Commit b4b0bd0

Browse files
committed
fixed error in error messages being generated
1 parent 21a76ea commit b4b0bd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/formatters/baseFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export abstract class BaseFormatter {
4242
}
4343

4444
protected handleError(expectedFileName: string, fileName: string, error: Error) {
45-
let customError = "Formatting with ${this.Id} failed. Please install the formatter or turn it off.\n";
45+
let customError = `Formatting with ${this.Id} failed. Please install the formatter or turn it off.\n`;
4646

4747
if (typeof (error) === "object" && error !== null && ((<any>error).code === "ENOENT" || (<any>error).code === 127)) {
4848
// Check if we have some custom arguments such as "pylint --load-plugins pylint_django"

src/client/linters/baseLinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export abstract class BaseLinter {
115115
}
116116

117117
protected handleError(expectedFileName: string, fileName: string, error: Error) {
118-
let customError = "Linting with ${this.Id} failed. Please install the linter or turn it off.\n";
118+
let customError = `Linting with ${this.Id} failed. Please install the linter or turn it off.\n`;
119119

120120
if (typeof (error) === "object" && error !== null && ((<any>error).code === "ENOENT" || (<any>error).code === 127)) {
121121
// Check if we have some custom arguments such as "pylint --load-plugins pylint_django"

0 commit comments

Comments
 (0)