aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-05-12 12:17:27 +0200
committerBjörn Gustavsson <[email protected]>2016-05-13 10:52:25 +0200
commit3a8638e89e90dd2cfd311e3b98541ca3d6ac2b96 (patch)
tree6c9e44a30f2a87123258e613c70ab941e9525018
parent8bc4519e7337904354029580684f3c173b65fb5c (diff)
downloadotp-3a8638e89e90dd2cfd311e3b98541ca3d6ac2b96.tar.gz
otp-3a8638e89e90dd2cfd311e3b98541ca3d6ac2b96.tar.bz2
otp-3a8638e89e90dd2cfd311e3b98541ca3d6ac2b96.zip
core_pp: Crash on unhandled Core Erlang forms
Don't try to be nice. Since we now have good test suites for Core Erlang, just let it crash.
-rw-r--r--lib/compiler/src/core_pp.erl5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/compiler/src/core_pp.erl b/lib/compiler/src/core_pp.erl
index 623722df94..22171a70c7 100644
--- a/lib/compiler/src/core_pp.erl
+++ b/lib/compiler/src/core_pp.erl
@@ -350,11 +350,6 @@ format_1(#c_module{name=N,exports=Es,attrs=As,defs=Ds}, Ctxt) ->
format_funcs(Ds, Ctxt),
nl_indent(Ctxt)
| "end"
- ];
-format_1(Type, _) ->
- ["** Unsupported type: ",
- io_lib:write(Type)
- | " **"
].
format_funcs(Fs, Ctxt) ->