Skip to content

Commit

Permalink
Fix OTP 26 compilation failure (#325)
Browse files Browse the repository at this point in the history
Fix src/smtp_server_example.erl typespec in `handle_error`
to use `#state{}` instead of `State`.
  • Loading branch information
wingyplus authored Apr 18, 2023
1 parent 17b1616 commit ac4f8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smtp_server_example.erl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ handle_info(_Info, State) ->
%% Return {ok, State} to let gen_smtp decide how to act or {stop, Reason, #state{}}
%% to stop the process with reason Reason immediately.
-spec handle_error(gen_smtp_server_session:error_class(), any(), #state{}) ->
{ok, State} | {stop, any(), State}.
{ok, #state{}} | {stop, any(), #state{}}.
handle_error(Class, Details, State) ->
?LOG_INFO("handle_error(~p, ~p, ~p)", [Class, Details, State], ?LOGGER_META),
{ok, State}.
Expand Down

0 comments on commit ac4f8ba

Please sign in to comment.