Add lineno info to error info in when inferring calls