TRy and improve error reporting.