diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-10 10:31:51 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-10 10:31:51 +0300 |
commit | 722864666d32edab031fbe161e178173e3b48a8e (patch) | |
tree | e7ab17f44526fcba61ac2fbe448658b3b7455bed /src/mod_vcard.erl | |
parent | Improve error handling/reporting when loading language translations (diff) |
Add/improve type specs
Diffstat (limited to 'src/mod_vcard.erl')
-rw-r--r-- | src/mod_vcard.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_vcard.erl b/src/mod_vcard.erl index b7be42a13..41f04940a 100644 --- a/src/mod_vcard.erl +++ b/src/mod_vcard.erl @@ -132,7 +132,8 @@ init([Host, Opts]) -> end, {ok, #state{hosts = MyHosts, server_host = Host}}. -handle_call(_Call, _From, State) -> +handle_call(Call, From, State) -> + ?WARNING_MSG("Unexpected call from ~p: ~p", [From, Call]), {noreply, State}. handle_cast(Cast, State) -> @@ -443,6 +444,7 @@ mk_search_form(JID, ServerHost, Lang) -> Lang, ?T("You need an x:data capable client to search")), xdata = X}. +-spec make_instructions(module(), binary()) -> binary(). make_instructions(Mod, Lang) -> Fill = translate:translate( Lang, |