aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2015-01-25 18:38:33 +0100
committerAleksander Morgado <aleksander@aleksander.es>2015-01-25 18:38:33 +0100
commit89c7b0fc54aaeb5c143bd4f89e66a7b10ff4c82a (patch)
treed1fda3c213fed1126a2003e0a0e35d5fe8850ea2 /build-aux
parent844cd725ff91242e579ccb733d384f6882ec499c (diff)
downloadexternal_libqmi-89c7b0fc54aaeb5c143bd4f89e66a7b10ff4c82a.zip
external_libqmi-89c7b0fc54aaeb5c143bd4f89e66a7b10ff4c82a.tar.gz
external_libqmi-89c7b0fc54aaeb5c143bd4f89e66a7b10ff4c82a.tar.bz2
qmi-codegen: require Service set for a correct Client definition
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/qmi-codegen/Client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/Client.py b/build-aux/qmi-codegen/Client.py
index 071c91b..1e342ae 100644
--- a/build-aux/qmi-codegen/Client.py
+++ b/build-aux/qmi-codegen/Client.py
@@ -43,9 +43,11 @@ class Client:
elif object_dictionary['type'] == 'Service':
self.service = object_dictionary['name']
- # We NEED the Client field
+ # We NEED the Client field and the Service field
if self.name is None:
raise ValueError('Missing Client field')
+ if self.service is None:
+ raise ValueError('Missing Service field')
"""