aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/utils.py
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-23 21:54:38 -0500
committermat <github@matdoes.dev>2022-06-23 21:54:38 -0500
commit8755f18c2b0c11a51a81f60b5501d9d57d0c370e (patch)
tree08594ab64576d439662ccb7786b11aa11cb1877c /codegen/lib/code/utils.py
parente44afb76f4d89ecd3763db83338268b9d9360a0c (diff)
downloadazalea-drasl-8755f18c2b0c11a51a81f60b5501d9d57d0c370e.tar.xz
Correctly detect updated packets
Diffstat (limited to 'codegen/lib/code/utils.py')
-rw-r--r--codegen/lib/code/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py
index ecfff4fb..0c22d7ba 100644
--- a/codegen/lib/code/utils.py
+++ b/codegen/lib/code/utils.py
@@ -62,8 +62,7 @@ def burger_type_to_rust_type(burger_type):
burger_type[:-2])
field_type_rs = f'Vec<{field_type_rs}>'
else:
- print('Unknown field type:', burger_type)
- exit()
+ raise Exception(f'Unknown field type: {burger_type}')
return field_type_rs, is_var, uses