Various fixes to the documentation.
Only change the reported traceback if it is not the proximate cause
of the error.