Skip to content

Commit

Permalink
Tweak error message for Null definition (#581)
Browse files Browse the repository at this point in the history
Feedback from #573 (comment)
  • Loading branch information
NikolausDemmel authored and dirk-thomas committed Feb 8, 2018
1 parent e290032 commit de2152c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rosdep2/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_rule_for_platform(self, os_name, os_version, installer_keys, default_ins
raise ResolutionError(rosdep_key, self.data, os_name, os_version, 'No definition of [%s] for OS version [%s]' % (rosdep_key, os_version))
# if the os_version has the value None
if os_version in data and data[os_version] is None:
raise ResolutionError(rosdep_key, self.data, os_name, os_version, 'Null definition of [%s] for OS version [%s]' % (rosdep_key, os_version))
raise ResolutionError(rosdep_key, self.data, os_name, os_version, '[%s] defined as "not available" for OS version [%s]' % (rosdep_key, os_version))
# if os version is not defined (and there is a wildcard) fallback to the wildcard
if os_version not in data:
os_version = '*'
Expand Down

0 comments on commit de2152c

Please sign in to comment.