diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-06 16:15:56 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 3fcbcc11675540fc7296073debc0cab3f74e7997 (patch) | |
tree | 9ed130d5a60a23050fa548234df5a919b164757f /mod/mod-ci-github-gq.cxx | |
parent | 0f3b0873da09ec9cfe3b472f9bfe2b2de313b4af (diff) |
Post-review changes
Diffstat (limited to 'mod/mod-ci-github-gq.cxx')
-rw-r--r-- | mod/mod-ci-github-gq.cxx | 8 |
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; } |