Clean up impelementation of `raise_error` a little more.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add a changelog entry for #294.