diff options
-rw-r--r-- | build-aux/qmi-codegen/VariableArray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py index 6af3c2d..793bbc1 100644 --- a/build-aux/qmi-codegen/VariableArray.py +++ b/build-aux/qmi-codegen/VariableArray.py @@ -246,7 +246,7 @@ class VariableArray(Variable): elif self.array_size_element.public_format == 'guint32': translations['array_size_element_size'] = '4' else: - translations['array_size_element_size'] = '0' + raise ValueError('Invalid array size element format in %s array' % (self.name)) template = ( '${lp} ${array_size_element_format} ${common_var_prefix}_n_items;\n' |