aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-21 12:38:49 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-06-05 09:12:45 +0200
commit89759cf327830f70ce4611c6a77b8c2aa7913338 (patch)
tree9a837723b7072aa3a9675f6bd101e810f5ccd4f1 /mod/mod-ci-github.cxx
parentbbdc465b53e23f625c1886616f91e92f485aa472 (diff)
Review: JWT
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx5
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.