diff options
author | Viktor Söderqvist <[email protected]> | 2020-11-12 14:30:59 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-05-15 12:36:40 +0200 |
commit | b7d8105ef0856bc30dfd018ccd357582a9f3f129 (patch) | |
tree | e93b2b5161df2cf0edbd7b08218d55a094522143 /plugins/triq.mk | |
parent | 7d0babaaa11679c4d9c877e17a3ffab9c6664517 (diff) | |
download | erlang.mk-b7d8105ef0856bc30dfd018ccd357582a9f3f129.tar.gz erlang.mk-b7d8105ef0856bc30dfd018ccd357582a9f3f129.tar.bz2 erlang.mk-b7d8105ef0856bc30dfd018ccd357582a9f3f129.zip |
Replace erlang:get_stacktrace() with catch C:E (V=0) or C:E:S (V>0)
This makes us compatible with OTP < 21, except when V (verbose) is set.
Diffstat (limited to 'plugins/triq.mk')
-rw-r--r-- | plugins/triq.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/triq.mk b/plugins/triq.mk index 8791e2c..6d41376 100644 --- a/plugins/triq.mk +++ b/plugins/triq.mk @@ -26,8 +26,8 @@ define triq_check.erl end of true -> halt(0); _ -> halt(1) - catch error:undef -> - io:format("Undefined property or module?~n~p~n", [erlang:get_stacktrace()]), + catch error:undef$(if $V,:Stacktrace) -> + io:format("Undefined property or module?~n$(if $V,~p~n)", [$(if $V,Stacktrace)]), halt(0) end. endef |