Improve error reporting from bridge functions

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>