fix for overriding error details

refined in last commit.