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-04-24 15:14:54 +0200
commite28e6cdf684e7f3cf127a85008f65f2c39646b93 (patch)
tree3b424156cfd14a9c500e380a4ef0db5d45af4fa5 /mod/mod-ci-github.cxx
parent37cf25d69b760bb217e571e4f660154083b2ab2a (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.