Skip to content

Commit

Permalink
Exit with code 1 on unreached CM
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Aug 12, 2024
1 parent 16396bd commit 3d67dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions controller_manager/controller_manager/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def main(args=None):
pass
except ServiceNotFoundError as err:
node.get_logger().fatal(str(err))
return 1
finally:
rclpy.shutdown()

Expand Down
1 change: 1 addition & 0 deletions controller_manager/controller_manager/unspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def main(args=None):
pass
except ServiceNotFoundError as err:
node.get_logger().fatal(str(err))
return 1
finally:
rclpy.shutdown()

Expand Down

0 comments on commit 3d67dfa

Please sign in to comment.