Fixed error dump creation
Merge pull request #813 from dswd/fix-error-dumps

Fixed error dump creation