Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chris Lamb
jenkins.debian.net
Commits
26dcd3a5
Verified
Commit
26dcd3a5
authored
May 16, 2018
by
Mattia Rizzolo
Browse files
reproducible: web scheduler: add an X-Error-Message in case of ValidationError
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
e9931086
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/cgi-bin/schedule
View file @
26dcd3a5
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment