Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#862 closed defect (wontfix)

Which field caused method_save to bomb out?

Reported by: garthk Owned by: Adrian Holovaty
Component: Metasystem Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If method_save fails whilst trying to call pre_save on a field, it can be tricky to figure out which field caused the problem without wading to exactly the right place in the stack frame or riddling meta\ with debugging code. To save everyone the effort, I've got a patch that'll append a descriptive message to the exception's arguments so the errant field name is obvious and easy to find from the last line of the traceback.

Attachments (1)

862.diff (1.6 KB) - added by garthk 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by garthk

Attachment: 862.diff added


comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top