Commit 9a1ec83f authored by chrissi^'s avatar chrissi^

cgi/newkey: Send at least error to client in case of an error

When raising an exception cgilib creates a html-error page.
The javasript does not interpret that as a valid response and the client
sees *no* response.

This change writes an error message to the client. Thus there is at
lease some feedback in the ui.
parent 8acc9b12
......@@ -73,7 +73,7 @@ try:
print '{"success":false, "message":"Die Eingabe ist fehlerhaft"}'
except Exception as e:
#/print '{"success":false, "message":"Die Eingabe ist fehlerhaft", "err":"'+repr(e)+'"}'
raise e
print '{"success":false, "message":"Die Eingabe ist fehlerhaft", "err":"'+repr(e)+'"}'
#raise e
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