fix for overriding error details

Is all this setup actually used?