Improve error message when running prisma with an outdated client #1008
Labels
kind/improvement
An improvement to existing feature and code.
level/intermediate
priority/medium
topic: dx
Improvements or issues relating to developer experience
Milestone
Problem
When upgrading to a newer version of prisma python client - let's say, 0.13.1 to 0.14.0, if you forget to run
prisma generate
again, you'll get an error message like thisIt's not very obvious based on this
preview_features
message that this error actually stems from an outdated client.Suggested solution
The prisma library already knows
prisma.__version__
. We should also track the version used for generating the client - and if it's missing or mismatched, raise an error.Alternatives
Additional context
The text was updated successfully, but these errors were encountered: