Commit 2e5dbfd4 authored by Deepak Rangarajan's avatar Deepak Rangarajan
Browse files

replace exception with assert

parent ad682f0d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -729,9 +729,7 @@ std::shared_ptr<Tree> parse_csg(std::string str) {
  }
  auto st = maybe_state.value();

  if (st.current_3d_objs.size() != 1)
    throw std::runtime_error(
        "Error parsing. Somehow created a bad top level object!");
  assert(st.current_3d_objs.size() == 1);

  Tree tree;
  for (auto obj : st.current_3d_objs.back()) {