Traceback format helper