From 6c4f2ada5de41e631cfcb73f9dce05f0db718ee1 Mon Sep 17 00:00:00 2001 From: Ansh Chaturvedi Date: Wed, 7 Aug 2024 15:38:32 -0400 Subject: [PATCH] fix: remove accidentally changed `E.left` change --- packages/openapi-generator/src/error.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/openapi-generator/src/error.ts b/packages/openapi-generator/src/error.ts index 75d5a1ff..7fec19ff 100644 --- a/packages/openapi-generator/src/error.ts +++ b/packages/openapi-generator/src/error.ts @@ -6,8 +6,9 @@ import * as E from 'fp-ts/Either'; * @returns an `E.left` with the error message and a stacktrace */ export function errorLeft(message: string): E.Either { - const stacktrace = new Error().stack!.split('\n').slice(2).join('\n'); - const messageWithStacktrace = message + '\n' + stacktrace; + // const stacktrace = new Error().stack!.split('\n').slice(2).join('\n'); + // const messageWithStacktrace = message + '\n' + stacktrace; + const messageWithStacktrace = message; - return errorLeft(messageWithStacktrace); + return E.left(messageWithStacktrace); }