Hunter275 / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Add exception details to http 500 error #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Change line 263 of http.py from

self.sendResponse(500)

to 

self.sendResponse(500, "%s" % e)

This will allow getting more information when any uncought Python exception 
occurs in WebIOPi (most likely in custom scripts of users).

See this thread for details:

https://groups.google.com/d/msg/webiopi/4K78j3Cfc8k/K-0gq_RTGQIJ

Original issue reported on code.google.com by andreas....@googlemail.com on 26 Mar 2014 at 8:04