diff options
author | Björn Gustavsson <[email protected]> | 2017-03-14 15:57:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-03-15 13:03:17 +0100 |
commit | ec57794ac294666a8bf31f9f7f79585ddaeed808 (patch) | |
tree | bdf221ec82a0ddac9a5dc67f8cd1b73c7608e9ce /lib/asn1/src/asn1ct_value.erl | |
parent | afd0690257ce11ca1e4b50fe70e8f731357dacd1 (diff) | |
download | otp-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_value.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_value.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/asn1/src/asn1ct_value.erl b/lib/asn1/src/asn1ct_value.erl index d1f5ce5c92..f7d986aa91 100644 --- a/lib/asn1/src/asn1ct_value.erl +++ b/lib/asn1/src/asn1ct_value.erl @@ -108,9 +108,7 @@ from_type_constructed(M,Typename,InnerType,D) when is_record(D,type) -> 'SET OF' -> {_,Type} = D#type.def, NameSuffix = asn1ct_gen:constructed_suffix(InnerType,Type#type.def), - get_sequence_of(M,Typename,D,NameSuffix); - _ -> - exit({nyi,InnerType}) + get_sequence_of(M,Typename,D,NameSuffix) end. get_sequence(M,Typename,Type) -> @@ -292,9 +290,7 @@ from_type_prim(M, D) -> 16#ffff,16#ffee,16#10ffff,16#ffff,16#fff]), unicode:characters_to_binary(L); 'UniversalString' -> - adjust_list(size_random(C),c_string(C,"UniversalString")); - XX -> - exit({asn1_error,nyi,XX}) + adjust_list(size_random(C),c_string(C,"UniversalString")) end. c_string(C,Default) -> |