Opened 5 years ago

Last modified 5 years ago

#24723 new Cleanup/optimization

Migration writer errors should be more informative

Reported by: James Rivett-Carnac Owned by: nobody
Component: Migrations Version: master
Severity: Normal Keywords: Migrations, Exceptions
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When squashing a set of migrations, the errors should be a bit more informative - such as
giving a file/line number to where the originating offensive code is

An example is ValueError 'Cannot serialize function: lambda'

  • Note - I couldn't easily figure out what is being done here because the method is a bit long to keep context in my head. I'm not sure if you have access to this information in this method.

Change History (1)

comment:1 Changed 5 years ago by Tim Graham

Summary: Errors while squashing migrations should be more informativeMigration writer errors should be more informative
Triage Stage: UnreviewedAccepted
Version: 1.7master

Certainly wouldn't hurt, if it's feasible.

Note: See TracTickets for help on using tickets.
Back to Top