* src/ejabberd_ctl.erl: Now prints a user-friendly when trying

to restore a backup from a non-existent file.

SVN Revision: 564
This commit is contained in:
Mickaël Rémond 2006-05-07 17:31:12 +00:00
parent 205c565e6f
commit 640e1579f5
2 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,9 @@
* 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

View File

@ -133,7 +133,12 @@ process(["restore", Path]) ->
?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]) ->