Add some error reporting.