Skip to content

Commit e2cfc5c

Browse files
authored
fix(cli): prevent duplicated error messages on fail (without watcher) (dotansimha#8120)
* fix(cli): prevent duplicated error messages on fail (without watcher) Related to dotansimha#7546 * Create smooth-beans-fetch.md
1 parent f2ecf73 commit e2cfc5c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/smooth-beans-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-codegen/cli": patch
3+
---
4+
5+
fix(cli): prevent duplicated error messages on fail (without watcher)

packages/graphql-codegen-cli/src/cli.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export async function runCli(cmd: string): Promise<any> {
1616
return await generate(context);
1717
} catch (error) {
1818
await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
19-
throw error;
2019
}
2120
}
2221

0 commit comments

Comments
 (0)