aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen_per.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-03-14 15:57:25 +0100
committerBjörn Gustavsson <[email protected]>2017-03-15 13:03:17 +0100
commitec57794ac294666a8bf31f9f7f79585ddaeed808 (patch)
treebdf221ec82a0ddac9a5dc67f8cd1b73c7608e9ce /lib/asn1/src/asn1ct_gen_per.erl
parentafd0690257ce11ca1e4b50fe70e8f731357dacd1 (diff)
downloadotp-ec57794ac294666a8bf31f9f7f79585ddaeed808.tar.gz
otp-ec57794ac294666a8bf31f9f7f79585ddaeed808.tar.bz2
otp-ec57794ac294666a8bf31f9f7f79585ddaeed808.zip
Remove default clauses that cause exceptions for internal errors
Just crash if there is an internal error.
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_per.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen_per.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl
index 645e0e3aeb..22719bba74 100644
--- a/lib/asn1/src/asn1ct_gen_per.erl
+++ b/lib/asn1/src/asn1ct_gen_per.erl
@@ -256,9 +256,7 @@ gen_decode_user(Erules,D) when is_record(D,typedef) ->
asn1ct_gen:gen_decode_constructed(Erules,Typename,InnerType,D);
#'Externaltypereference'{}=Etype ->
gen_dec_external(Etype, "Bytes"),
- emit([".",nl,nl]);
- Other ->
- exit({error,{asn1,{unknown,Other}}})
+ emit([".",nl,nl])
end.
gen_dec_external(Ext, BytesVar) ->