unreported upgrader errors

Andrew Altepeter <[email protected]> Wed, 4 May 2011 15:23:50 -0500
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hi Devs,

I'm working on some Silva 2.3 upgraders for our environment.  These are
*really* easy to write, so that's nice!  Using silvaupdate is also very
easy, I like not having to fully start up zope and do the upgrade in the
ZMI.

There have been a few times where I have a syntax error in my upgrader.
It seems that silvaupdate swallows the error, does not report it, and
proceeds to do the upgrade as usual.  In this case, since the import of
the module failed, no upgraders (or any other functionality) defined in
the module are actually loaded.  The syntax error could be in any sort
of python module -- it isn't reported.

This was hard to troubleshoot until I thought, "does it start up
normally with paste serve"?

Would it be possible to report zope startup errors of this sort when
using silvaupdate?

thanks,
Andy