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 6f754f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ 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;

return errorLeft(messageWithStacktrace);
return E.left(messageWithStacktrace);
}

0 comments on commit 6f754f1

Please sign in to comment.