byu-osl / bookout

A person-to-person library
3 stars 0 forks source link

Invalid Profiles return 500 #7

Open n8carrier opened 11 years ago

n8carrier commented 11 years ago

Whether the profile user doesn't exist or isn't in the network of the logged in user, a 500 error is served. The code is built to still render profile.html, while serving arguments, but it never gets there. Once the code is fixed I can set up the front end to handle non existent user and out of network profiles.

As a side note, both non-existent and out-of-network users will be handled identically, so the code can be simplified so both lead to the same render of profile.html.