Minor fix for tests run on PPC64 from Tony Reix.
Make sure all the error handlers return a result and don't just rely on an exception being thrown.