diff --git a/ros2caret/verb/record.py b/ros2caret/verb/record.py index 34fcc28..e9dfc21 100644 --- a/ros2caret/verb/record.py +++ b/ros2caret/verb/record.py @@ -233,7 +233,7 @@ def main(self, *, args): break print(f'Failed to init LTTng. retry {i} / {args.init_retry_num}') time.sleep(1) - if not init_result: + else: print('Failed to init LTTng.') exit(0)