fix for overriding error details

Why did these two reverse order? Shouldn't we have a test case for this?