colcon / colcon-core

Command line tool to build sets of software packages
http://colcon.readthedocs.io
Apache License 2.0
103 stars 46 forks source link

colcon returns with success when extension loading fails #637

Open christianrauch opened 5 months ago

christianrauch commented 5 months ago

When an extension throws an exception during loading, a backtrace is shown but colcon continues: https://github.com/colcon/colcon-core/blob/15ed7d670ebb64871689fabb98a2bc2d459ae2c1/colcon_core/extension_point.py#L165-L176

That means, if an extension fails to load, colcon will return with exit code 0, indicating success. For automation, it would be more useful if colcon returns an exit code indicating an error.