added error handler helper fxn to tnrs to spit out meaningful messages, #331