make error links in the doc buffer.