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

This closes #232

Signed-off-by: Sam Phippen <samphippen@googlemail.com>