gussmith23 / capstats

stats for caps
GNU Affero General Public License v3.0
0 stars 1 forks source link

Exceptions aren't caught in request handlers #2

Closed chbaker0 closed 8 years ago

chbaker0 commented 8 years ago

Because exceptions aren't dealt with in the request handler functions in capstats_server.cpp, they exhibit some unexpected behavior. For example, when fetching an invalid user, a '500 Internal Server Error' response is sent rather than a '404 Not Found'.

gussmith23 commented 8 years ago

acknowledged. request handlers will be rewritten regardless, but I will keep this in mind when rewriting

gussmith23 commented 8 years ago

oh, nevermind, thanks for the fix

chbaker0 commented 8 years ago

I'm still adding more exception handlers, if you don't want that I can just stop. In the process I am basically rewriting the handlers anyway.