summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-13 00:45:42 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-13 00:45:42 +0200
commit3e07c602fdbce92a2562980ebefb39a8df95eefe (patch)
tree305270e7da5795bfd85e5e09ced43d595e675224 /tools
parentaeafc8ca0fa3ae02bbb5c955a3b885bdc66c3d26 (diff)
Slightly nicer errors from dcpkdm.
Diffstat (limited to 'tools')
-rw-r--r--tools/dcpkdm.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dcpkdm.cc b/tools/dcpkdm.cc
index 9fb228ee..c34454be 100644
--- a/tools/dcpkdm.cc
+++ b/tools/dcpkdm.cc
@@ -62,6 +62,7 @@ tm_to_string (struct tm t)
int
main (int argc, char* argv[])
+try
{
optional<boost::filesystem::path> private_key_file;
@@ -144,3 +145,8 @@ main (int argc, char* argv[])
return 0;
}
+catch (std::exception& e)
+{
+ cerr << "Error: " << e.what() << "\n";
+ exit (EXIT_FAILURE);
+}