CLI: migrate dev
should return a non-successful exit code (1) when there is an error during seeding
#14862
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: cli
topic: exit code
topic: prisma dev
CLI: prisma dev (removed)
topic: seeding
Milestone
Bug description
From #12349
We have a different behavior for the error exit code between
migrate dev
andmigrate reset
if there is an error during seeding: dev will exit 0, while reset 1How to reproduce
./prisma/seed.js
file containing:./prisma/schema.prisma
containing the followingnpx prisma migrate dev
Expected behavior
npx prisma migrate dev
should exit with an exit code = 1.Prisma Version
The text was updated successfully, but these errors were encountered: