reproducible: web scheduler: add an X-Error-Message in case of ValidationError

parent e9931086
......@@ -25,6 +25,7 @@ class ValidationError(Exception):
super().__init__(message)
print('Status: 400 Bad Request')
print('Content-Type: text/plain; charset="utf-8"')
print('X-Error-Message: {}'.format(message))
print()
print(message)
debug_info()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment