message: fix get_vec_var_context
diff: @@ -152,7 +152,7 @@ context_vector get_vec_var_context(const std::string &file, size_t num_chains) {
  }
  std::string file_name = file.substr(0, file_marker_pos);
  std::string file_ending = file.substr(file_marker_pos, file.size());
  - if (file_ending != ".json" || file_ending != ".csv") {
  + if (file_ending != ".json" && file_ending != ".csv") {
  std::stringstream msg;
  msg << "file ending of " << file_ending << " is not supported by cmdstan";
  throw std::invalid_argument(msg.str());
  @@ -174,7 +174,7 @@ context_vector get_vec_var_context(const std::string &file, size_t num_chains) {
  << std::endl;
  throw std::invalid_argument(msg.str());
  } else {
  - return context_vector(1, make_context(file, stream, file_ending));
  + return context_vector(num_chains, make_context(file, stream, file_ending));
  }
  } else {
  // If we found file_1 then we'll assume file_{1...N} exists
  