Author: sebb
Date: Thu Feb 12 15:43:29 2026
New Revision: 1931827
Log:
Show client error messages
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Modified:
comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Thu Feb 12 15:42:22 2026 (r1931826)
+++ comdev/reporter.apache.org/branches/tooling-project/scripts/rapp/bat.py
Thu Feb 12 15:43:29 2026 (r1931827)
@@ -184,6 +184,9 @@ def publish(environ, _user):
'Authorization': environ.get('HTTP_AUTHORIZATION'),
"Content-Type": "application/json"
}, json = payload, timeout = 10)
+ # Intercept client errors
+ if 400 <= rv.status_code < 500:
+ return {'okay': False, 'message': rv.text}
rv.raise_for_status()
return {'okay': True, 'message': "Posted to board agenda!"}
except: