Skip to content

Commit 4ca14f8

Browse files
committed
Revert "Use os.EOL for separating stack in error"
This reverts commit b33b5bb. The errors module is also imported in the webview, so we can't actually use it.
1 parent d682c52 commit 4ca14f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as os from "os";
2-
31
export class RedactableError extends Error {
42
constructor(
53
cause: ErrorLike | undefined,
@@ -29,7 +27,7 @@ export class RedactableError extends Error {
2927
return this.fullMessage;
3028
}
3129

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

3533
public get redactedMessage(): string {

0 commit comments

Comments
 (0)