Commit b987e06e authored by dbarbera's avatar dbarbera
Browse files

Raise compile error in unsupported cases

parent e4e9bcba
...@@ -151,7 +151,7 @@ class Context(): ...@@ -151,7 +151,7 @@ class Context():
elif basic_asn1ty.kind in ('StringType', 'StandardStringType'): elif basic_asn1ty.kind in ('StringType', 'StandardStringType'):
llty = self.i8_ptr llty = self.i8_ptr
else: else:
raise NotImplementedError raise CompileError('Unknown basic ASN.1 type "%s"' % basic_asn1ty.kind)
if name: if name:
self.lltypes[name] = llty self.lltypes[name] = llty
...@@ -1138,8 +1138,8 @@ def _expr_append(expr, ctx): ...@@ -1138,8 +1138,8 @@ def _expr_append(expr, ctx):
return res_ptr return res_ptr
else: raise CompileError('Type "%s" not supported in append expressions'
raise NotImplementedError % basic_asn1ty.kind)
@expression.register(ogAST.ExprIn) @expression.register(ogAST.ExprIn)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment