element: keep original 'detail' when re-raising

Also don't redundantly convert exceptions to strings when format()-ing them.

In later work there may be other modules that need fixups.

Merge request reports

Loading