Revert "Use os.EOL for separating stack in error"

This reverts commit b33b5bb7c4.

The errors module is also imported in the webview, so we can't actually
use it.
This commit is contained in:
Koen Vlaswinkel
2023-10-23 11:43:15 +02:00
parent d682c520d5
commit 4ca14f89df

View File

@@ -1,5 +1,3 @@
import * as os from "os";
export class RedactableError extends Error {
constructor(
cause: ErrorLike | undefined,
@@ -29,7 +27,7 @@ export class RedactableError extends Error {
return this.fullMessage;
}
return `${this.fullMessage}${os.EOL}${this.stack}`;
return `${this.fullMessage}\n${this.stack}`;
}
public get redactedMessage(): string {