Make scope change warning more informative