Skip to content

Commit

Permalink
fix(cli): prevent duplicated error messages on fail (without watcher) (
Browse files Browse the repository at this point in the history
…#8120)

* fix(cli): prevent duplicated error messages on fail (without watcher)

Related to #7546

* Create smooth-beans-fetch.md
  • Loading branch information
charlypoly committed Jul 20, 2022
1 parent f2ecf73 commit e2cfc5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-beans-fetch.md
@@ -0,0 +1,5 @@
---
"@graphql-codegen/cli": patch
---

fix(cli): prevent duplicated error messages on fail (without watcher)
1 change: 0 additions & 1 deletion packages/graphql-codegen-cli/src/cli.ts
Expand Up @@ -16,7 +16,6 @@ export async function runCli(cmd: string): Promise<any> {
return await generate(context);
} catch (error) {
await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
throw error;
}
}

Expand Down

1 comment on commit e2cfc5c

@vercel
Copy link

@vercel vercel bot commented on e2cfc5c Jul 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.