Slightly improve error reporting.