aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/test/yecc_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:35:23 +0100
committerHans Bolinder <[email protected]>2018-02-06 14:40:53 +0100
commit8a0804939d0402730b4f07235b18893803472894 (patch)
tree494da03ab9d9a569e80d8038e0a6225fdaa05fca /lib/parsetools/test/yecc_SUITE.erl
parent4e3405a381e023aca9b194e929868bea8ba112d2 (diff)
downloadotp-8a0804939d0402730b4f07235b18893803472894.tar.gz
otp-8a0804939d0402730b4f07235b18893803472894.tar.bz2
otp-8a0804939d0402730b4f07235b18893803472894.zip
parsetools: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/parsetools/test/yecc_SUITE.erl')
-rw-r--r--lib/parsetools/test/yecc_SUITE.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/parsetools/test/yecc_SUITE.erl b/lib/parsetools/test/yecc_SUITE.erl
index a7166b91ed..2d3b15326b 100644
--- a/lib/parsetools/test/yecc_SUITE.erl
+++ b/lib/parsetools/test/yecc_SUITE.erl
@@ -1674,8 +1674,7 @@ format_error(Message) ->
yeccpars0(Tokens, MFA) ->
try yeccpars1(Tokens, MFA, 0, [], [])
catch
- error: Error ->
- Stacktrace = erlang:get_stacktrace(),
+ error: Error : Stacktrace ->
try yecc_error_type(Error, Stacktrace) of
{syntax_error, Token} ->
yeccerror(Token);