Skip to content

Commit

Permalink
fix: remove accidentally changed E.left change
Browse files Browse the repository at this point in the history
  • Loading branch information
anshchaturvedi committed Aug 7, 2024
1 parent b7c83a6 commit 6c4f2ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/openapi-generator/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, never> {
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);
}

0 comments on commit 6c4f2ad

Please sign in to comment.