diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-02 10:58:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-02 10:58:10 +0200 |
commit | 723b9dc6a2827ab38b4f74ea18d679bcc1f98c97 (patch) | |
tree | 7e58cdbe157335dd249c74310ffa18b9190b8ab9 /mod/mod-ci-github-gq.cxx | |
parent | f16fd8c4d5010501b47c99b55b36df3384ebb72d (diff) |
Review
Diffstat (limited to 'mod/mod-ci-github-gq.cxx')
-rw-r--r-- | mod/mod-ci-github-gq.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/mod-ci-github-gq.cxx b/mod/mod-ci-github-gq.cxx index a0a0d6b..7b7e464 100644 --- a/mod/mod-ci-github-gq.cxx +++ b/mod/mod-ci-github-gq.cxx @@ -521,9 +521,11 @@ namespace brep os << '\n'; os << " startedAt: " << gq_str (gh_to_iso8601 (*sa)); } - catch (const runtime_error& e) + catch (const system_error& e) { - throw invalid_argument ("invalid started_at value " + + // Translate for simplicity. + // + throw invalid_argument ("unable to convert started_at value " + to_string (system_clock::to_time_t (*sa)) + ": " + e.what ()); } |