amend traceback during upgrade to include object affected
Bug #369420 reported by
Andy Altepeter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
During the upgrade process, if the upgrade fails on an object, a traceback/error is raised which contains no information regarding the object that caused the failure, or which upgrader on the object failed.
The upgrade process should amend the traceback to include this information, in the same way that page templates, amend the traceback to include the local context/variables.
Changed in silva: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is now working in both the 2.1 branch (which will be 2.1.4) and the Silva trunk (2.2). When an exception occurs in upgradeObject, or an upgraders upgrade method, the object, object_path, and upgrader will be printed in the traceback, like a page templates context is.l