Add detailed error reporting.