From 5f2b8912d234c834b6f8c24ab38cf02dd52fc31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Thu, 12 May 2016 12:12:48 +0200 Subject: core_pp: Remove useless try...catch We will get more information if we don't catch the exception. --- lib/compiler/src/core_pp.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/compiler/src/core_pp.erl') diff --git a/lib/compiler/src/core_pp.erl b/lib/compiler/src/core_pp.erl index a1501400ae..b2bb1ecd32 100644 --- a/lib/compiler/src/core_pp.erl +++ b/lib/compiler/src/core_pp.erl @@ -507,9 +507,7 @@ unindent([], _, []) -> []. width(Txt, Ctxt) -> - try width(Txt, 0, Ctxt, []) - catch error:_ -> exit({bad_text,Txt}) - end. + width(Txt, 0, Ctxt, []). width([$\t|T], A, Ctxt, C) -> width(T, A + ?TAB_WIDTH, Ctxt, C); -- cgit v1.2.3