switch error reporting check