* src/ejabberd_admin.erl: Code refactoring. Common Mnesia database
restore function.
+ * src/ejabberd_ctl.erl: Now prints a user-friendly when trying to
+ restore a backup from a non-existent file.
+
2006-05-01 Mickael Remond <mickael.remond@process-one.net>
* src/ejabberd_ctl.erl: Unknown tables or tables from now unused
?STATUS_ERROR;
{aborted,{no_exists,Table}} ->
io:format("Can't restore backup from ~p at node ~p: Table ~p does not exist.~n",
- [filename:absname(Path), node(), Table])
+ [filename:absname(Path), node(), Table]),
+ ?STATUS_ERROR;
+ {aborted,enoent} ->
+ io:format("Can't restore backup from ~p at node ~p: File not found.~n",
+ [filename:absname(Path), node()]),
+ ?STATUS_ERROR
end;
process(["install-fallback", Path]) ->