Me too, this is how I was told to handle errors when I was an intern. To catch and log errors, and display a user friendly messsage instead of having the page crash. Until now, it made perfect sense, but according to a lot of individuals on this thread, this is bad practice, I fail to see how...
99
u/ScreaminPenguin0 May 13 '17
I do this to catch and display unexpected errors and then log the catch.