check error in path