aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_ctl.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index 80d66f4cc..bdadc3827 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -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]) ->