diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2025-01-06 19:43:24 -0600 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2025-01-09 14:12:50 -0600 |
commit | 8d50577c0f6a4ff775b774e5803f7ec0928ff2c7 (patch) | |
tree | fe993c540e55c708c4d33158999c8ae3ac212099 /utils | |
parent | de44514b25b8e9eb8efb50da68b48b583356d8a1 (diff) |
utils: codegen: controls.py: Fix missing direction error message
The error message for missing direction field prints the direction value
(usually 'None') instead of the name of the field 'direction'. Fix this.
Fixes: 39fe4ad96803 ("utils: codegen: controls.py: Parse direction information")
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/codegen/controls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/codegen/controls.py b/utils/codegen/controls.py index 602f15b2..e5161048 100644 --- a/utils/codegen/controls.py +++ b/utils/codegen/controls.py @@ -65,7 +65,7 @@ class Control(object): else: direction = self.__data.get('direction') if direction is None: - raise RuntimeError(f'Control `{self.__name}` missing required field `{direction}`') + raise RuntimeError(f'Control `{self.__name}` missing required field `direction`') if direction not in ['in', 'out', 'inout']: raise RuntimeError(f'Control `{self.__name}` direction `{direction}` is invalid; must be one of `in`, `out`, or `inout`') self.__direction = direction |