Skip to content

Commit fdd3a56

Browse files
author
Martin Cox
committed
Remove stacktrace compat, update workflow to build OTP22/23/24.
1 parent fa2f234 commit fdd3a56

File tree

4 files changed

+13
-38
lines changed

4 files changed

+13
-38
lines changed

.github/workflows/erlang.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
otp:
20+
- "24.2.1.0"
21+
- "23.3.4.11"
22+
- "22.3.4.24"
23+
1624
container:
17-
image: erlang:24.2.0.0
25+
image: erlang:${{ matrix.otp }}
1826

1927
steps:
2028
- uses: actions/checkout@v2

rebar.config

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
warnings_as_errors
2929
]}.
3030

31+
{minimum_otp_vsn, "22.0"}.
32+
3133
{deps, [
3234
{cuttlefish,
3335
{git, "https://github.com/kyorai/cuttlefish.git",

src/clique_test_group_leader.erl

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
terminate/2,
1515
code_change/3]).
1616

17-
-include("stacktrace.hrl").
18-
1917
-behaviour(gen_server).
2018

2119
-record(state, {output=[], size={80,20}}).
@@ -116,8 +114,8 @@ io_request({put_chars, M, F, A}, State) ->
116114
try apply(M, F, A) of
117115
Chars ->
118116
io_request({put_chars, Chars}, State)
119-
catch ?_exception_(C, T, StackToken) ->
120-
{{error, {C,T, ?_get_stacktrace_(StackToken)}}, State}
117+
catch Class:Reason:Stacktrace ->
118+
{{error, {Class,Reason, Stacktrace}}, State}
121119
end;
122120
io_request({put_chars, _Enc, Chars}, State) ->
123121
io_request({put_chars, Chars}, State);

src/stacktrace.hrl

-33
This file was deleted.

0 commit comments

Comments
 (0)