Commit b987e06e authored by dbarbera's avatar dbarbera
Browse files

Raise compile error in unsupported cases

parent e4e9bcba
......@@ -151,7 +151,7 @@ class Context():
elif basic_asn1ty.kind in ('StringType', 'StandardStringType'):
llty = self.i8_ptr
raise NotImplementedError
raise CompileError('Unknown basic ASN.1 type "%s"' % basic_asn1ty.kind)
if name:
self.lltypes[name] = llty
......@@ -1138,8 +1138,8 @@ def _expr_append(expr, ctx):
return res_ptr
raise NotImplementedError
raise CompileError('Type "%s" not supported in append expressions'
% basic_asn1ty.kind)
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