Skip to content

Commit 78dc29e

Browse files
authored
Merge pull request #13 from rerun-io/emilk/exit-on-failure
Use exit_on_failure
2 parents 98a3575 + cf1825c commit 78dc29e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ std::vector<Eigen::Vector3f> generate_random_points_vector(int num_points) {
1919
}
2020

2121
int main() {
22-
auto rec = rerun::RecordingStream("rerun_example_cpp");
23-
rec.spawn().throw_on_failure();
22+
const auto rec = rerun::RecordingStream("rerun_example_cpp");
23+
rec.spawn().exit_on_failure();
2424

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

@@ -57,7 +57,7 @@ int main() {
5757
);
5858

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

0 commit comments

Comments
 (0)