aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-gq.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-06-06 16:15:56 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-06-07 07:55:27 +0200
commite8f9286bb9b71bf1b8b80233e9dca2367486850d (patch)
tree74739a54131222a751b78232bed2b5b9a3d78db2 /mod/mod-ci-github-gq.cxx
parenta4bcd9573b481ae1a584bf774487a87aca30b31d (diff)
Post-review changes
Diffstat (limited to 'mod/mod-ci-github-gq.cxx')
-rw-r--r--mod/mod-ci-github-gq.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/mod-ci-github-gq.cxx b/mod/mod-ci-github-gq.cxx
index df81854..bcf9e55 100644
--- a/mod/mod-ci-github-gq.cxx
+++ b/mod/mod-ci-github-gq.cxx
@@ -597,6 +597,10 @@ namespace brep
//
bool found = false;
+ // Non-fatal error message issued during the parse.
+ //
+ string parse_error;
+
// The response value. Absent if the merge commit is still being
// generated.
//
@@ -632,7 +636,7 @@ namespace brep
; // Still being generated; leave value absent.
else
{
- error << "unexpected mergeable value '" << ma << "'";
+ parse_error = "unexpected mergeable value '" + ma + '\'';
// Carry on as if it were UNKNOWN.
}
@@ -662,6 +666,8 @@ namespace brep
{
if (!rs.found)
error << "pull request '" << nid << "' not found";
+ else if (!rs.parse_error.empty ())
+ error << rs.parse_error;
return rs.value;
}