Opened 19 years ago

Closed 19 years ago

Last modified 18 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

Description

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\init.py 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 19 years ago.
Fix

Download all attachments as: .zip

Change History (2)

by garthk, 19 years ago

Attachment: 862.diff added

Fix

comment:1 by Adrian Holovaty, 19 years ago

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