[autotest] Create a DevServerHTTPError Exception class.
Cherrypy handles it's HTTPErrors by generating html and displaying
the exception message in the browsers view. To get the same exception
message in the logs, first log the actual exception then call
cherrypy.HTTPErrors. This will add a lot of traceability to
HTTPExceptions when we eventually dump the update engine logs in
TEST=Raised an exception and check that it was logged, and displayed
in the browser view.
Tested-by: Prashanth Balasubramanian <firstname.lastname@example.org>
Reviewed-by: Alejandro Deymo <email@example.com>
Reviewed-by: Chris Sosa <firstname.lastname@example.org>
Commit-Queue: Prashanth Balasubramanian <email@example.com>
1 file changed