Prettify error messages and prompts
link_queue.cc: catch infinite loop when trace has only zeros