switched error reporting