Skip to content

Commit

Permalink
Ensure houdini generate exits with 1 in case of errors (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppahBaws authored Feb 21, 2024
1 parent 1862f25 commit d22a395
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-points-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': patch
---

Ensure houdini generate exits with 1 in case of errors
2 changes: 2 additions & 0 deletions packages/houdini/src/cmd/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ export async function generate(
console.error(error.stack.split('\n').slice(1).join('\n'))
}
})

process.exit(1)
}
}

0 comments on commit d22a395

Please sign in to comment.