diff --git a/bindings/python/tv.cc b/bindings/python/tv.cc index cae55566f..2d0580d56 100644 --- a/bindings/python/tv.cc +++ b/bindings/python/tv.cc @@ -124,8 +124,7 @@ void tvFromJson(const std::vector& 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");