return traceback if error occurs