differences between connection error and scan error