use binary search to get the error at specified location
add buffer name for the info window (fix #2)