aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-05-12 12:12:48 +0200
committerBjörn Gustavsson <[email protected]>2016-05-13 10:52:25 +0200
commit5f2b8912d234c834b6f8c24ab38cf02dd52fc31b (patch)
treecadde408081c058f8558bf1a947eb99ca8818375
parent372702b3ec641ce133d05395c69c6d87f6be7519 (diff)
downloadotp-5f2b8912d234c834b6f8c24ab38cf02dd52fc31b.tar.gz
otp-5f2b8912d234c834b6f8c24ab38cf02dd52fc31b.tar.bz2
otp-5f2b8912d234c834b6f8c24ab38cf02dd52fc31b.zip
core_pp: Remove useless try...catch
We will get more information if we don't catch the exception.
-rw-r--r--lib/compiler/src/core_pp.erl4
1 files changed, 1 insertions, 3 deletions
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);