diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-21 12:38:49 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:45 +0200 |
commit | 89759cf327830f70ce4611c6a77b8c2aa7913338 (patch) | |
tree | 9a837723b7072aa3a9675f6bd101e810f5ccd4f1 /mod/mod-ci-github.cxx | |
parent | bbdc465b53e23f625c1886616f91e92f485aa472 (diff) |
Review: JWT
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r-- | mod/mod-ci-github.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 13e6d32..396e732 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -390,6 +390,8 @@ handle (request& rq, response& rs) // @@ TMP Actually I was wrong, these do not end up in any logs. Pretty // sure I saw them go there but they're definitely not anymore. // + // See how it's done in other modules and do the same. + // throw invalid_request (400, "malformed JSON in request body"); } @@ -431,7 +433,8 @@ handle (request& rq, response& rs) } catch (const system_error& e) { - fail << "unable to generate JWT: [" << e.code () << "] " << e.what (); + fail << "unable to generate JWT (errno=" << e.code () << "): " + << e.what (); } // Authenticate to GitHub as an app installation. |