Fix raise error when the expectation target is an error instance.

Not sure if this is the best way to do it, but it certainly seems to work. Thoughts?