rock-core / autoproj

Rock (Robot Construction Kit) package-oriented build system
http://rock-robotics.org/rock-and-syskit/workspace
23 stars 22 forks source link

Add error message when the package_sets part in the manifest is not an Array #405

Open planthaber opened 6 months ago

planthaber commented 6 months ago

When the package_sets part in the manifest file in malformed like this (missing dash before github):

package_sets:
   github: rock-core/package_set

Only a cryptic error message is displayed without reference to the manifest file: local_package_set.rb:93:inconcat': no implicit conversion of Hash into Array (TypeError)`

This adds a proper message that points to the source of the problem: local_package_set.rb:90:inraw_description_file': The package_sets field in your manifest file is not an array, check your YAML syntax (SyntaxError)`