summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bbackupquery/BackupQueries.cpp')
-rw-r--r--bin/bbackupquery/BackupQueries.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp
index 7f511b74..0c5f9c15 100644
--- a/bin/bbackupquery/BackupQueries.cpp
+++ b/bin/bbackupquery/BackupQueries.cpp
@@ -2009,19 +2009,14 @@ void BackupQueries::CommandRestore(const std::vector<std::string> &args, const b
false /* don't undelete after restore! */,
opts['r'] /* resume? */);
}
- catch (BoxException &e)
- {
- ::syslog(LOG_ERR, "Failed to restore: %s", e.what());
- return;
- }
catch(std::exception &e)
{
- ::syslog(LOG_ERR, "Failed to restore: %s", e.what());
+ BOX_ERROR("Failed to restore: " << e.what());
return;
}
catch(...)
{
- ::syslog(LOG_ERR, "Failed to restore: unknown error");
+ BOX_ERROR("Failed to restore: unknown exception");
return;
}