diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-13 00:45:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-13 00:45:42 +0200 |
| commit | 3e07c602fdbce92a2562980ebefb39a8df95eefe (patch) | |
| tree | 305270e7da5795bfd85e5e09ced43d595e675224 | |
| parent | aeafc8ca0fa3ae02bbb5c955a3b885bdc66c3d26 (diff) | |
Slightly nicer errors from dcpkdm.
| -rw-r--r-- | tools/dcpkdm.cc | 6 |
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); +} |
