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); }