Optional error reporting.