Added method to flatten exceptions before passing them on to the OnError pipeline hook. Issue #1232.
Fixed spacing in changes
Merge pull request #1269 from rasmus-beck/master

Added method to flatten exceptions before passing them on to the OnError pipeline hook