]> granicus.if.org Git - esp-idf/commitdiff
Tools: Produce a clearer message for Kconfig prefix errors
authorRoland Dobai <dobai.roland@gmail.com>
Wed, 22 May 2019 13:44:41 +0000 (15:44 +0200)
committerRoland Dobai <dobai.roland@gmail.com>
Wed, 22 May 2019 13:48:30 +0000 (15:48 +0200)
tools/check_kconfigs.py

index ae879813fa86c7f1298253f75d84f0b953ffb23d..23a46e149c2aaecabb755e5f8774ad6651bea257 100755 (executable)
@@ -263,8 +263,9 @@ class IndentAndNameChecker(BaseChecker):
         common_prefix_len = len(common_prefix)
         if common_prefix_len < self.min_prefix_length:
             raise InputError(self.path_in_idf, line_number,
-                             'Common prefix "{}" length is {} and should be at least {} characters long'
-                             ''.format(common_prefix, common_prefix_len, self.min_prefix_length),
+                             'The common prefix for the config names of the menu ending at this line is "{}". '
+                             'All config names in this menu should start with the same prefix of {} characters '
+                             'or more.'.format(common_prefix, self.min_prefix_length),
                              line)   # no suggested correction for this
         if len(self.prefix_stack) > 0:
             parent_prefix = self.prefix_stack[-1]