Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-27 08:59:49 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-27 08:59:49 +0300
commit568ab526e2e5895c8891960632b3395a304250fe (patch)
tree542b0917f60da3a0c43442a21ea3b487dc4f46d8
parenta8238d6a541b5b7d38b854a76422db2a99fe7aa9 (diff)
Improve ejd2sql logging
-rw-r--r--src/ejd2sql.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ejd2sql.erl b/src/ejd2sql.erl
index 048787c08..79533421e 100644
--- a/src/ejd2sql.erl
+++ b/src/ejd2sql.erl
@@ -86,6 +86,11 @@ export(Server, Output, Module1) ->
fun({Table, ConvertFun}) ->
case export(LServer, Table, IO, ConvertFun) of
{atomic, ok} -> ok;
+ {aborted, {no_exists, _}} ->
+ ?WARNING_MSG("Ignoring export for module ~s: "
+ "Mnesia table ~s doesn't exist (most likely "
+ "because the module is unused)",
+ [Module1, Table]);
{aborted, Reason} ->
?ERROR_MSG("Failed export for module ~p and table ~p: ~p",
[Module, Table, Reason])