Made error reporting configurable