Skip to content

Commit b33b5bb

Browse files
committed
Use os.EOL for separating stack in error
1 parent 78f832a commit b33b5bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/common/errors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as os from "os";
2+
13
export class RedactableError extends Error {
24
constructor(
35
cause: ErrorLike | undefined,
@@ -27,7 +29,7 @@ export class RedactableError extends Error {
2729
return this.fullMessage;
2830
}
2931

30-
return `${this.fullMessage}\n${this.stack}`;
32+
return `${this.fullMessage}${os.EOL}${this.stack}`;
3133
}
3234

3335
public get redactedMessage(): string {

0 commit comments

Comments
 (0)