Skip to content

Commit

Permalink
Merge pull request #13 from rerun-io/emilk/exit-on-failure
Browse files Browse the repository at this point in the history
Use exit_on_failure
  • Loading branch information
emilk authored Oct 30, 2023
2 parents 98a3575 + cf1825c commit 78dc29e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ std::vector<Eigen::Vector3f> generate_random_points_vector(int num_points) {
}

int main() {
auto rec = rerun::RecordingStream("rerun_example_cpp");
rec.spawn().throw_on_failure();
const auto rec = rerun::RecordingStream("rerun_example_cpp");
rec.spawn().exit_on_failure();

rec.log_timeless("world", rerun::ViewCoordinates::RIGHT_HAND_Z_UP); // Set an up-axis

Expand Down Expand Up @@ -57,7 +57,7 @@ int main() {
);

// Read image
std::string image_path = "rerun-logo.png";
const auto image_path = "rerun-logo.png";
cv::Mat img = imread(image_path, cv::IMREAD_COLOR);
if (img.empty()) {
std::cout << "Could not read the image: " << image_path << std::endl;
Expand Down

0 comments on commit 78dc29e

Please sign in to comment.