Skip to content

Commit a9265be

Browse files
committed
add config file path to message
1 parent bcebbd4 commit a9265be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sshConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ export class SSHConfig {
131131
const endBlockCount = countSubstring(endBlock, raw)
132132
if (startBlockCount !== endBlockCount) {
133133
throw new SSHConfigBadFormat(
134-
`Malformed config: Unterminated START CODER VSCODE ${label ? label + " " : ""}block: Each START block must have an END block.`,
134+
`Malformed config: ${this.filePath} has an unterminated START CODER VSCODE ${label ? label + " " : ""}block. Each START block must have an END block.`,
135135
)
136136
}
137137

138138
if (startBlockCount > 1 || endBlockCount > 1) {
139139
throw new SSHConfigBadFormat(
140-
`Malformed config: ssh config has ${startBlockCount} START CODER VSCODE ${label ? label + " " : ""}sections, please remove all but one.`,
140+
`Malformed config: ${this.filePath} has ${startBlockCount} START CODER VSCODE ${label ? label + " " : ""}sections. Please remove all but one.`,
141141
)
142142
}
143143

0 commit comments

Comments
 (0)