set error reporting option