fix for overriding error details

test added in next commit