Skip to content

Commit

Permalink
#97: throw an exception in bindings call if error
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 20, 2024
1 parent 0e4de25 commit 62f3a6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bindings/python/tv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ void tvFromJson(const std::vector<std::string>& input_json_per_rank_list, const
);
render.generate(font_size, win_size);
} catch (std::exception const& e) {
std::cout << "vt-tv: Error reading the configuration file: " << e.what() << std::endl;
exit(1);
throw std::runtime_error(fmt::format("vt-tv: Error reading the configuration file: {}", e.what()));
}

fmt::print("vt-tv: Done.\n");
Expand Down

0 comments on commit 62f3a6d

Please sign in to comment.