aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/utils.py
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-07-29 04:56:21 +0000
committerGitHub <noreply@github.com>2022-07-29 04:56:21 +0000
commitaadf2de3cb751d563e743599a7fb345c08010f5a (patch)
treeaec2a9485c5057f1c148b87e23ee07a7a6b4978b /codegen/lib/code/utils.py
parent3e43fc6c502573f9d48d801087e72cded37a30b8 (diff)
parent2211021105a7ce0ce9fcbc18f3b4f03b0f991a10 (diff)
downloadazalea-drasl-aadf2de3cb751d563e743599a7fb345c08010f5a.tar.xz
Merge pull request #8 from mat-1/1.19.1
Support 1.19.1. Signing stuff isn't implemented but auth isn't even in Azalea yet so that's fine.
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