Use os.EOL for separating stack in error
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import * as os from "os";
|
||||
|
||||
export class RedactableError extends Error {
|
||||
constructor(
|
||||
cause: ErrorLike | undefined,
|
||||
@@ -27,7 +29,7 @@ export class RedactableError extends Error {
|
||||
return this.fullMessage;
|
||||
}
|
||||
|
||||
return `${this.fullMessage}\n${this.stack}`;
|
||||
return `${this.fullMessage}${os.EOL}${this.stack}`;
|
||||
}
|
||||
|
||||
public get redactedMessage(): string {
|
||||
|
||||
Reference in New Issue
Block a user