You should check `scanner.Err()` here.