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.
Showing with 2 additions and 2 deletions