Verified Commit 26dcd3a5 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent e9931086
...@@ -25,6 +25,7 @@ class ValidationError(Exception): ...@@ -25,6 +25,7 @@ class ValidationError(Exception):
super().__init__(message) super().__init__(message)
print('Status: 400 Bad Request') print('Status: 400 Bad Request')
print('Content-Type: text/plain; charset="utf-8"') print('Content-Type: text/plain; charset="utf-8"')
print('X-Error-Message: {}'.format(message))
print() print()
print(message) print(message)
debug_info() debug_info()
......
Supports Markdown
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