mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Fix dialyzer warnings in recent commit
This commit is contained in:
parent
e1dc686ae7
commit
3183e2f733
1 changed files with 2 additions and 2 deletions
|
@ -602,8 +602,7 @@ config_reloaded() ->
|
|||
end
|
||||
end, New).
|
||||
|
||||
|
||||
-spec return_socket_error(inet:posix(), endpoint(), module()) -> ok.
|
||||
-spec return_socket_error(inet:posix(), endpoint(), module()) -> no_return().
|
||||
return_socket_error(Reason, EndPoint, Module) ->
|
||||
?ERROR_MSG("Failed to open socket at ~ts for ~ts: ~ts",
|
||||
[format_endpoint(EndPoint), Module, format_error(Reason)]),
|
||||
|
@ -613,6 +612,7 @@ return_socket_error(Reason, EndPoint, Module) ->
|
|||
return_init_error(Reason) ->
|
||||
proc_lib:init_ack({error, Reason}).
|
||||
-else.
|
||||
-spec return_init_error(inet:posix()) -> no_return().
|
||||
return_init_error(Reason) ->
|
||||
proc_lib:init_fail({error, Reason}, {exit, normal}).
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue