marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
96 stars 9 forks source link

Improve usefulness of typecasting failures. #189

Closed amcgregor closed 6 years ago

amcgregor commented 6 years ago

When executing typecast callbacks, trap TypeError and ValueError and transform the message being raised to be more useful (include the name of the argument being cast), on other exceptions log and re-raise.

amcgregor commented 6 years ago

Implemented and verified as of 543bfb79c0737917d1bd2a148eb61761ab6f6319