aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-04-07 14:49:38 +0200
committerJán Sučan <jan@jansucan.com>2024-04-07 15:01:38 +0200
commit4d7dd62fcf8d0f1feb96dc0749aa3003750ff7eb (patch)
treebbd48b1302c3ad8e6cf98ff640159354a2f32393 /src/main.cpp
parent43de68e11816e7836b32177dd2ec2e88f14564c5 (diff)
Add a common exception parent class
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 01f3a69..0810f04 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -48,10 +48,7 @@ main(int argc, char **argv)
OptionParser::printUsage();
std::cerr << "ERROR: " << e.what() << std::endl;
exit(1);
- } catch (const BackupError &e) {
- std::cerr << "ERROR: " << e.what() << std::endl;
- exit(1);
- } catch (const RestoreError &e) {
+ } catch (const DiffddError &e) {
std::cerr << "ERROR: " << e.what() << std::endl;
exit(1);
}