Improve error handling
Created originally on Bitbucket by bjoernricks (Björn Ricks)
Was already merged in Bitbucket before import, marked as merged by the import user
Hi Florent,
I am still having some issues with my odt templates which I have to investigate later. But in meanwhile this two commits improve the error handling to be able to find the cause of the problems easily.