aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-11-27 11:50:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-12-10 16:44:55 +0200
commit1d0a198748c0e4aa1ce22ab2989a2b734f7d8948 (patch)
tree2c4b596214e19219ee570a04c8a412922caf0ea7 /mod/mod-ci-github-service-data.cxx
parentf5768fee9d0977a42f344cf0cfdae74ca80a23b9 (diff)
Ensure all exceptions are handled in build_*() notifications
Diffstat (limited to 'mod/mod-ci-github-service-data.cxx')
-rw-r--r--mod/mod-ci-github-service-data.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/mod-ci-github-service-data.cxx b/mod/mod-ci-github-service-data.cxx
index d3071b2..31a556d 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -220,9 +220,11 @@ namespace brep
{
v = gh_to_iso8601 (installation_access.expires_at);
}
- catch (const runtime_error& e)
+ catch (const system_error& e)
{
- throw invalid_argument ("invalid IAT expires_at value " +
+ // Translate for simplicity.
+ //
+ throw invalid_argument ("unable to convert IAT expires_at value " +
to_string (system_clock::to_time_t (
installation_access.expires_at)));
}