diff --git a/cerevoice_tts/src/cerevoice_tts_node.cpp b/cerevoice_tts/src/cerevoice_tts_node.cpp index f34e61d..49698af 100644 --- a/cerevoice_tts/src/cerevoice_tts_node.cpp +++ b/cerevoice_tts/src/cerevoice_tts_node.cpp @@ -43,7 +43,10 @@ int main(int argc, char **argv) ros::init(argc, argv, "tts_node"); cerevoice_tts::CerevoiceTts tts; - tts.init(); + bool initialized = tts.init(); + + if(!initialized) + return EXIT_FAILURE; ros::spin();